playMaker

Author Topic: Background Spawners?  (Read 1240 times)

gl0ckage

  • Playmaker Newbie
  • *
  • Posts: 8
    • Duvet Secrets
Background Spawners?
« on: November 29, 2015, 02:09:51 PM »
Quote
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?

« Last Edit: November 30, 2015, 04:52:41 PM by gl0ckage »
Thanks for anyone helping me learn Playmaker.

I appreciate it very much. <3

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6954
    • jinxtergames
Re: Collision Enter 2d Object Not Working - Video Inc
« Reply #1 on: November 29, 2015, 07:47:49 PM »
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


gl0ckage

  • Playmaker Newbie
  • *
  • Posts: 8
    • Duvet Secrets
Re: Collision Enter 2d Object Not Working - Video Inc
« Reply #2 on: November 30, 2015, 02:35:35 PM »
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?

« Last Edit: November 30, 2015, 04:53:11 PM by gl0ckage »
Thanks for anyone helping me learn Playmaker.

I appreciate it very much. <3