Help with checking actors position against another

Hi All,

I was on game salad a couple of years ago and decided to return! Slowly getting back into things but now working on my windows PC rather than a mac so posting my question under this. I have a scene where I have an actor the user controls, I have other actors spawning off scene and moving across at the top. I want the moving actors to drop when they get within a set distance from the player actor.

I currently have a timer on the player actor to update game attributes for playerx/y position every 0.1 seconds, then on the moving actor check every 0.1 seconds if self.position.x < game.playerx + 50, if so then accelerate downwards but they don't move?

Can anyone give any advice? Thanks

Comments

Sign In or Register to comment.