Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 7,096 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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