Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: xhidnoda on February 12, 2014, 07:32:38 AM

Title: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 12, 2014, 07:32:38 AM
Hi...use this code and translate to playmaker style.
This code is for a random Spawn Obstacle according to values of you decide.
See youtube link how to use: Maybe Jean is the guy of can translate this code in playmaker! is the best!
 :P ;D :'(
HEY JEAN...!!!! HELP :)

using UnityEngine;
using System.Collections;
 
public class SpawnObstacle : MonoBehaviour {
 
        public GameObject obstacle;
        float x = 0;
       
        void Update () {
                float y = Random.Range(15.43331f, 29.42488f);
        if(x < 1000) {
            Instantiate(obstacle, new Vector3(x * 6.0f, y, 0),Quaternion.identity);
            x++;
        }
        Debug.Log(x);
        }
}
Modify message
Title: Re: Flappy Bird Clone in Playmaker
Post by: jess84 on February 12, 2014, 08:28:22 AM
If there was one thing the world needed, it was definitely another flappy bird clone  ;D
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 12, 2014, 08:36:17 AM
Hell yeah!
HAHAHAHA
but in PLAYMAKER  ;D
Title: Re: Flappy Bird Clone in Playmaker
Post by: Flying Robot on February 12, 2014, 09:12:58 AM
Here you go! Cloned 1 hr 30 mins since I saw your post.

Send me a postcard when you get rich!  :D
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 12, 2014, 09:29:02 AM
What amazing is you just share!!
 :D
You use Unity 4.3?
Title: Re: Flappy Bird Clone in Playmaker
Post by: Flying Robot on February 12, 2014, 09:32:09 AM
Yep! The mechanics is all there. You'll need to balance, add scoring and achievements and of course textures and animations.
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 12, 2014, 09:38:00 AM
Thanks!!
I open the scene in my house! so i well tell you!

<3
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 12, 2014, 09:09:55 PM
Is Works!
But why you don't use a 2D tool of Unity?
Title: Re: Flappy Bird Clone in Playmaker
Post by: Flying Robot on February 13, 2014, 02:09:30 AM
Oh. You can do this using sprites too.
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 13, 2014, 09:39:16 AM
yes....but in my knowledge...i late for do that.  :-[
Title: Re: Flappy Bird Clone in Playmaker
Post by: IceMaker on February 13, 2014, 01:38:37 PM
Took me about an hour to clone Flappy Birds. We should all team up maybe 8-10 of us and create a contract together; the formula to these games seems to be a "skinners box" where it is highly difficult due to luck (player has very poor control over bird due to the sudden drop) giving the illusion of it being "easy" so they are compelled to play due believing "one more time and I'll do much better".

We each spend one week creating a game and if any of them go viral then we split the money evenly. It's like winning the lottery.
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 13, 2014, 06:24:20 PM
@Flying Robot here the source of Flappy Bird
http://www.spriters-resource.com/mobile_phone/flappybird/sheet/59537/
make it happen!  :P

@ IceMaker you have a webplayer of your game? or just share the code like @Flying Robot :)
Title: Re: Flappy Bird Clone in Playmaker
Post by: Flying Robot on February 14, 2014, 12:38:11 AM
Spare me the horror!   :-X
Title: Re: Flappy Bird Clone in Playmaker
Post by: Lane on February 14, 2014, 10:50:24 AM
I fear that you have unleashed untold terrors, dude.
Title: Re: Flappy Bird Clone in Playmaker
Post by: Alex Chouls on February 15, 2014, 12:51:13 AM
Brandon Wu has made a nice Flappy Bird video tutorial (with some neat Playmaker tips):
http://www.pepwuper.com/how-to-flappy-bird-a-quick-tutorial-on-how-to-make-a-flappy-bird-style-prototype-using-unity-playmaker-in-under-50-minutes-1/
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 15, 2014, 02:13:14 PM
OOOOHHHHH...!!!! this kind of tutorial is like a drug  ;D ;D ;D ;D ;D :o :o :o :o
so many thanks!!!
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 17, 2014, 09:16:16 PM
why...don't use a playmaker and unity 2D?
Playmaker 2D is not ready really jet?
Title: Re: Flappy Bird Clone in Playmaker
Post by: jeanfabre on February 17, 2014, 11:45:51 PM
Hi,

 Physics 3d can do pretty much everything physics 2d can do, I believe this was more a strategic advertizing feature to align with competitors then a manadatory feature.

PlayMaker 2d is ready tho, all the custom actions are there. If you see a missing feature, let me know:

https://hutonggames.fogbugz.com/default.asp?W1150


Bye,

 Jean
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 18, 2014, 07:20:30 AM
So...if is true, why add force 2D don't have a "force mode" like add force (3D)?
See...in the example of Brandon Wu, in player FSM, use add force with force mode:change....
In 2D mode...this feature is not have. why?
Title: Re: Flappy Bird Clone in Playmaker
Post by: jeanfabre on February 18, 2014, 11:40:04 PM
Hi,

 The unity 2d physics is using a different physics engine that do not have the same features. Unity 2d uses Box2d and unity 3d physics using Physx engine.

I am not too sure how to implement the same force mode seen in 3d into the 2d. Interesting question though.

bye,

 Jean
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 19, 2014, 01:04:28 PM
 :o Yes...i know
OK so, i get 2D toolkit + playmaker actions to do this game in 2D (sprites) and 3D physics.
  ::)
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on February 20, 2014, 08:38:14 PM
HAHAHA.....i kill my self  :-[
I use tk2dcamera for the scene. The FSM player is not work. Is like the gravity is soooo more! and the player fall heavy.
anyone know why?
Title: Re: Flappy Bird Clone in Playmaker
Post by: xhidnoda on March 29, 2014, 02:44:13 PM
Flappy Planes - All FSM source here. Enjoy
http://hutonggames.com/playmakerforum/index.php?topic=6841.0