Point and click question...Help Me Pleaseee
venon_it
Member, PRO Posts: 594
Hi,
i use this exemple for my game : http://gamesalad.com/game/play/30323
but I would change two aspects...
the white Line now is above the actor, can be moved under the actor?
second question:
now the line exit when click for second time....and the line out behind the actor...but if i want to exit a line behind the actor? i want to exit a line as a guide line (so the line goes out, but not behind the actor makes a track from point A to point this is possible?
Thanksssss
i use this exemple for my game : http://gamesalad.com/game/play/30323
but I would change two aspects...
the white Line now is above the actor, can be moved under the actor?
second question:
now the line exit when click for second time....and the line out behind the actor...but if i want to exit a line behind the actor? i want to exit a line as a guide line (so the line goes out, but not behind the actor makes a track from point A to point this is possible?
Thanksssss
Comments
If you want them behind the Actor, you have to make a new "particles" actor.
And spawn the new particles Actor behind the current one.
And I'm certain the second question is possible, I'm just not understanding it exactly...
i want when you have a second click exit the line ( it create a track ) , and after the actor follows the white line...
this is possible?
you need to keep track of the the actor's X and Y positions.
So: playerX and playerY.
where you click, that is the targetX and targetY.
you need to create a "track" Actor.
The Width of the track Actor is:
magnitude(abs(targetX-playerX),abs(targetY-playerY))
The Rotation of the track Actor is:
vectorToAngle(abs(targetX-playerX),abs(targetY-playerY))
That will get you started.
you have a demo? thankss a lot
Thanksssss thanksssss
I made a little demo for you. Hopefully it will help you out!
http://gamesalad.com/game/play/31279
Joe
can make you a new question?
I have more players to command in this game , how can I do so only for the actor selected moves the actor chosen?
( you insert in exemple : Magnitude (distance in pixels): ) but in my game I need to know the distance, can i deleting this attribute? )
Thankss a lot Venon
if i want to add this feature in this your exemple: http://gamesalad.com/game/play/30323
if possible??
Thanksss