can an image that is moved by buttons along motion paths activate a trigger?

Hi

I'm trying to build a old school style game, a little like pac man. I have a character that is animated by up/down/left/right buttons to move around the screen.  This part is working well.

I'd like to be able to trigger 'jump to X slide' when the character reaches certain point/location on the screen, these locations are going to be images of machines. When the learner gets to X slide they then need to perform certain actions before they're able to go back to the main slide.  

I'm not sure if I'm missing something really basic here or if it's not going to be possible!

Any help is greatly appreciated

Thanks

 

5 Replies
Nejc Žorga Dulmin

Yeah, what Adam suggested. Otherwise, here's my thinking:

I imagine that the object is moving on some sort of grid, which means that you could count the movements which would give you the coordinates. When user goes up, you add +1 to the "UP-DOWN" variable, if user goes down you subtract 1. Similar for left and right you add or subtract one from the "LEFT-RIGHT" variable.

So, this gives you total control of where the user is. All you need to do is add a few triggers with the variable conditions and you are good to go.