moving allong desired Paths

Get help using Construct 2

Post » Sun Mar 25, 2012 12:40 am

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
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Sun Mar 25, 2012 4:21 am

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.
B
27
S
11
G
1
Posts: 246
Reputation: 5,048


Return to How do I....?

Who is online

Users browsing this forum: Vodakman and 20 guests