playMaker

Author Topic: Flaptvia Olympics - learning Playmaker by making a simple game  (Read 1864 times)

Ekanaut

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Flaptvia Olympics - learning Playmaker by making a simple game
« on: February 10, 2014, 12:52:05 PM »
Hi all,

I picked up Playmaker last week and decided to make a Flappy Bird clone to learn how to use it.  This is what I have so far:



To Play:
http://ekanaut.com/flaptvia/


I'm still trying to figure out how to do a proper obstacle scrolling and have it randomly pick from a set of obstacles.  Right now it's two different set of assets with Move Towards set on them and using Wait states in-between.  It's not ideal and would love some help on it.

Also, I don't know how to setup a high score yet either.

Left Mouse Click to flap
Click on the "Start" to start the game and start flapping immediately.

Cheers,

Eka
« Last Edit: February 11, 2014, 11:04:35 PM by Ekanaut »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12344
  • Official Playmaker Support
    • View Profile
Re: Flaptvia Olympics - learning Playmaker by making a simple game
« Reply #1 on: February 11, 2014, 11:24:07 AM »
Hi,

 What are the controls? it just fall off without me being able to get a chance to do anything.

nice graphics tho, want to play it!!

bye,

 Jean

parallel

  • Full Member
  • ***
  • Posts: 155
    • View Profile
Re: Flaptvia Olympics - learning Playmaker by making a simple game
« Reply #2 on: February 11, 2014, 11:33:39 AM »
Hi,
 What are the controls? it just fall off without me being able to get a chance to do anything.
You have to click, click right after you press start.

It's pretty bugged, first time i played had to click 20 times for the bird to reach ground to die, to start over. then when you double click to fast in succesion it makes a huge jump.

Thus far from what I've seen; best looking flappy clone, but also most buggy. Impressive for 1 week in PM!
« Last Edit: February 11, 2014, 11:36:48 AM by parallel »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12344
  • Official Playmaker Support
    • View Profile
Re: Flaptvia Olympics - learning Playmaker by making a simple game
« Reply #3 on: February 11, 2014, 11:50:51 AM »
Hi,

 Really hard!!! I can't even pass the first fist... shame on me.

bye,

 Jean

Ekanaut

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Flaptvia Olympics - learning Playmaker by making a simple game
« Reply #4 on: February 11, 2014, 12:50:25 PM »
Hi,

 Really hard!!! I can't even pass the first fist... shame on me.

bye,

 Jean

Yeah it is super hard.  Make sure to click on "Start" and Mouse click like crazy before you die :)  I had a hard time with getting the GUI to work properly so the buttons don't look like they're clickable.

xhidnoda

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Re: Flaptvia Olympics - learning Playmaker by making a simple game
« Reply #5 on: February 11, 2014, 07:53:30 PM »
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: http://www.youtube.com/watch?v=5oiicjwOPbQ
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);
        }
}

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12344
  • Official Playmaker Support
    • View Profile
Re: Flaptvia Olympics - learning Playmaker by making a simple game
« Reply #6 on: February 11, 2014, 09:45:06 PM »
Hi,

@xhidnoda, can you create a new post for this, as it's not related to this topic really.

Thanks,

 Jean

Ekanaut

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Flaptvia Olympics - learning Playmaker by making a simple game
« Reply #7 on: February 11, 2014, 11:01:02 PM »
I was using an Apply Force to make the bird fly but that resulted in undesirable velocity changes depending on how fast you clicked.  I switched to a Set Velocity instead which seems to me much more reliable.  Also fixed up the UI a bit, added sound fx and some slight screen blur.

Ekanaut

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Flaptvia Olympics - learning Playmaker by making a simple game
« Reply #8 on: February 13, 2014, 01:08:17 AM »
added music and random scrolling obstacles. I think I'll call this done for #flappyjam