Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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