Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 664 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | 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