Point and click question...Help Me Pleaseee

venon_itvenon_it Member, PRO Posts: 594
edited November -1 in Working with GS (Mac)
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 B) this is possible?

Thanksssss

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Right now, the particles behavior always places the particles in front of the actor.
    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...
  • venon_itvenon_it Member, PRO Posts: 594
    Now you click in actor and second click in point want to move actor... after actor move to Point A to Point B

    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?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    yes,

    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.
  • venon_itvenon_it Member, PRO Posts: 594
    thanks, but I fail to integrate the example!!

    you have a demo? thankss a lot
  • venon_itvenon_it Member, PRO Posts: 594
    pleaseeeee help meeeee thanksssss
  • venon_itvenon_it Member, PRO Posts: 594
    Please help thanks a lot
  • venon_itvenon_it Member, PRO Posts: 594
    firemaplegames, pleaseeee help me with a demo

    Thanksssss thanksssss
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Hey,

    I made a little demo for you. Hopefully it will help you out!

    http://gamesalad.com/game/play/31279

    Joe
  • venon_itvenon_it Member, PRO Posts: 594
    yeaaaaaa, perfect example!
    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
  • venon_itvenon_it Member, PRO Posts: 594
    firemaplegames Thankss a lot,
    if i want to add this feature in this your exemple: http://gamesalad.com/game/play/30323
    if possible??

    Thanksss
Sign In or Register to comment.