Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, degenerate_762, AndrewAMD, ozgur), 774 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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