Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, Quad), 3,103 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 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