Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: gl0ckage on November 29, 2015, 02:09:51 PM
-
Hey all,
In the process of remaking my current games with playmaker - I am currently working on Flappy bird.
I am having an issue with Collision enter global transition It simply wont trigger the state when my Sprite (Rigid2d+Circle collider) hits the box collider pipes.
Is there any way around this?
Video of my issues
My previous question has been answered - Here is my new question:
Best way to spawn moving backgrounds and can you put a trigger when player reaches set score / distance?
-
Hi,
when playing you need to highlight "Birdking (1)" in the hierarchy then you can see what is happening.
the highlighted box (green) is the active state, so the collision is never active
one way you can do this is to :
Remove "Collision 2d Event" from the game over state.
Add "Collision 2d Event" to the idle state and to the flapping state
-
Thank you for the advice - It's like as soon as someone points out what is wrong it's like a lightbulb moment where you realize where you have gone wrong.
Adding the collision 2d event to both ended up with me flapping once then the bird would not enter the finished state and would not allow me to flap again.
Adding it to the idle state however triggered what I needed.
Now onto animations, sounds, GUI and scoring. Not much left haha :)
My previous question has been answered - Here is my new question:
Best way to spawn moving backgrounds and can you put a trigger when player reaches set score / distance?