Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 662 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Panel Over Entity [Re: iam_ufo973] #237465
11/20/08 08:54
11/20/08 08:54
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Yes thats because you are using C-Script and my code is Lite-C.
Try this one instead:
Code:
action enemy_act
{
  var my_pos[3];
  string my_health;

  while(me)
  {
    if(vec_for_screen(my.x,camera))
    {
      vec_set(my_pos,my.x);
      my_pos.z += 50; // z-offset
      vec_to_screen(my_pos,camera);
      str_for_num(my_health,my.skill22); // replace my.skill22 with your health skill
      draw_text(my_health,my_pos.x,my_pos.y,vector(255,255,255));
    }
    wait(1);
  }
}


Re: Panel Over Entity [Re: iam_ufo973] #237506
11/20/08 12:31
11/20/08 12:31
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline
Serious User
jigalypuff  Offline
Serious User

Joined: Nov 2005
Posts: 1,007
should`nt it be player.x not playerx?


Why does everyone like dolphins? Never trust a species which smiles all the time!
Re: Panel Over Entity [Re: iam_ufo973] #238177
11/25/08 11:47
11/25/08 11:47
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
dont save the script as .WDL, save it as a .C file instead!

that'll make it work ^_^


regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Panel Over Entity [Re: iam_ufo973] #238519
11/28/08 00:18
11/28/08 00:18
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

We were looking at a similar problem under "E1513....by ngisiger"
The solution (2 of them)

STRING* my_health;

was to remove the * or place this line outside the ACTION.

Hope this helps smile

I've looked at the manual and found the answer
to this situation under

beginner's mistakes

Mistake 4: Using pointers the wrong way

Good reading smile

Ottawa

Last edited by Ottawa; 11/28/08 00:54. Reason: read manual after
Page 2 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1