moving allong desired Paths

0 favourites
  • 2 posts
  • I have node points that correspond with node buttons you can click. I am trying to get the player sprite to travel to each point when clicked, but only to the nodes that are joined by rail. (The moving I have down, it is the picking I am having issues with.)

    I stored a text variable "AvailableNodes" in Each Node button. Example "0,2,3". When you click on the Node Button I want to search the text var with TokenAt and see if the node the player is on is in the list. Then send the player to that node that was clicked.

    One question I have is: When storing a text value in an object variable, when using TokenAt, do I add "" in the variable or not?

    I may be doing something wrong with TokenAt... I really need another pair of eyes to look at this and help...   PLEASE?

    http://www.box.com/s/40b40aefb4e67827a571

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • from what you are saying alone I would try to set the player as a bullet,

    and every time the player/bullet collides with an object/click set bullet to stop or change angle/speed etc.

    that's what I would do.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)