Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by AndrewAMD. 08/27/26 15:28
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 7,620 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
create energyballs in front of the player #163325
10/25/07 16:50
10/25/07 16:50
Joined: Oct 2007
Posts: 5
V
voodinator Offline OP
Newbie
voodinator  Offline OP
Newbie
V

Joined: Oct 2007
Posts: 5
Hi! My player (wizard) can create energyballs to attack his enemys (much like in aum14). My Problem: I want to create these energyballs 2-3 meters in front of the players model. I tried "my.x = (player.x+200)" but this seems just to be a relative distance and depending on the players pan the energyballs are created 200 quants in front, 200 quants behind or 200 quants beside the player.

How can i create them exactly 200 quants in front of the player independent of the players pan?

Hope you understand my problem. Its hard to explain for me.

Thx 4 every help!

Re: create energyballs in front of the player [Re: voodinator] #163326
10/25/07 19:48
10/25/07 19:48
Joined: May 2005
Posts: 83
Texas
mocosgames Offline
Junior Member
mocosgames  Offline
Junior Member

Joined: May 2005
Posts: 83
Texas
do this:
my.pos=player.pos;
my.x+=sin(player.pan+90)*200;
my.y+=sin(player.pan)*200;

Re: create energyballs in front of the player [Re: mocosgames] #163327
10/25/07 22:47
10/25/07 22:47
Joined: Oct 2007
Posts: 5
V
voodinator Offline OP
Newbie
voodinator  Offline OP
Newbie
V

Joined: Oct 2007
Posts: 5
Thank you very very much! This one works


Gamestudio download | 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