Help! I've had so many problems with using the X and Y coordinates of actives objects! I really don't understand why it doesn't work with anything I put into my engine.
I'll try and explain the problem as best I can...
Basically, in my platformer game, I have at least 5 "buzzsaws", which move left and right in a level. If you hit them, you get sucked in/torn apart and die.
So I have a kind of timer, which basically counts down from 10, and the player sinks a bit until it hits 0, just for effect.
HERE'S the problem:
I've made it so his X position is the same as the Buzzsaw the whole time (only when overlapping the Buzzsaw)
And I've made it so his Y position is +1 until the timer hits 0. Once the timer is 0, his position is in the centre of the Buzzsaw.
But it ONLY works properly if there's only ONE buzzsaw in the level. If I have any more than one, it's really random, and I can't quite get my head around what's causing the problem...
I've ditched about 3 gimmicks in my engine because I just can't figure it out. Anyone who has the slightest idea of what I'm trying to explain, could you please help?
I'll love you forever
Edit: I've attached a lil' piccie to show what I mean
Please login to see this attachment.