Hello guys,
ich want to save the x and y values from the player. Then i want to compare the coordinates in the array with the ones of a specific event.
I would be glad if someone could help me.
In first place.... thanks for your fast awnser.
The thing is, i dont want to compare the coordinates like this.
I actually want to save the route (x,y coordinates after each step) and compare if the event does cross the way.
Would events checking proximity to the player be what your looking for? Or are you making something like the bike thing from Tron? Or something like "snake"?
Yeah, maybe explain what you're trying to achieve so we can understand your requirements. Might have saved a bit of time.
How many steps do you want to remember? How many events do you want to check? What's going to happen if one/more events does cross the path - turn on a switch/activate that event?
Okay.
Actually i want to make different things with it.
Maybe place some mines wich bombs the event.
Or a type of a* algo or a own pathfinding system.
Or use it to make a sneak game.
Save the coordinates is not the problem for me, but i dont know how to compare each index place with the x (and y) coordinate from the event.
thats what i have so far: