Help with actor
jigglybean
Member Posts: 1,584
Hi all,
I need some help with an actor and it missing an object it SHOULD be colliding with.
So if Actor collides with Object A = 10 points
But if Actor misses Object A, I want the game to be over. I am not sure what I can make here. The Object spawns in different random locations based upon X,Y so I can't build invisible walls.
Any thoughts welcome.
cheers!
Like Balls? Then click here! We've 100 coming soon
Comments
Hmm. Could you use a rule that maybe says something like this:
Rule: When attribute self.Position X is greater than Object A position X
Game Over
I don't know how your game plays, so this may not work at all. Any more information you can give on the gameplay?
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
i want the actor to jump through a ring of fire but if he misses the ring of fire, he dies.
Like Balls? Then click here! We've 100 coming soon
If you think about how Flappy Bird works, the spawner chooses a gap position (Y value) and then spawns a top and bottom pipe at locations depending on the gap position. You would be doing something very similar but your ring of fire would be your "gap."
Try spawning an actor above and below your ring of fire and set the collision rules for those actors.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Yeah that's what I was thinking. but for some reason the actors arent spawning +20 pixels above/below the ring of fire, so they are covering it up
Like Balls? Then click here! We've 100 coming soon