Flappy Bird spawn poles physics?

ofekezofekez Member, PRO Posts: 95

Hello,
Can someone please help me with the spawn poles physics on a 568x320 game?
I don't know...
What is the btm pole physics and what is the top pole physics?
Thanks for the helpers!

BR,
Ofek.

Comments

  • MattButlerStudiosMattButlerStudios Member Posts: 486

    This video has helped me out in the past.

  • SocksSocks London, UK.Member Posts: 12,822
    edited August 2014

    In the new GameSalad cross platform Creator (hopefully to be released this year) GameSalad have said they are going to be including a number of Flappy Bird specific behaviours (like 'Flap up', 'Flap down', 'Pole Dance', 'Auto ISP infringement' and 'Plagiarise'), which might be worth waiting around for . . . .

    :p

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
  • ofekezofekez Member, PRO Posts: 95

    Sorry, i was wrong.
    I'm using a 16:9 project 320x568*

  • ApprowApprow Member Posts: 703

    @ofekez‌

    Top Pole:

    Change Attribute: self.motion.linear velocity X to -600 (or choose another speed)

    "Rule: Attribute self.position.X < -100
    Change Attribute: self.position.X to 668"

    "Rule: Attribute self.position.X < 668
    Change Attribute: self.position.Y to random(300,400) "This requirers tweaking its just an example"

    Bottom Pole

    Constrain Attribute: self.position.X to Top Pole X

    Constrain Attribute: self.position.Y to Top Pole Y -200 " requires tweaking as well"

    Hope this helps:)!

  • ofekezofekez Member, PRO Posts: 95

    Not really,
    i meant the spawning physics...
    X and Y...

  • ApprowApprow Member Posts: 703

    @ofekez‌ What do you want to spawn? this is more memory efficient if you mean the pole movement/physics.

  • ofekezofekez Member, PRO Posts: 95

    I know how to do the poles movement...
    I just don't know how to "spawn actor" them...
    Y- from where to where do i need to do? (random thing)...
    X - from where to spawn it?

  • ofekezofekez Member, PRO Posts: 95

    Hello, Can someone please help me with the spawn poles physics on a 320x568 game?
    I don't know on the "spawn actor" thing, what to write at the top pole section and what to write at the btm...
    Can someone please help me?
    Thank!

    BR,
    Ofek.

  • ApprowApprow Member Posts: 703

    I just told you, why do you start a new thread? you should now spawn. just create the top and bottom pole, and use the lines I told you before.

  • ofekezofekez Member, PRO Posts: 95

    You didn't help me at all...

  • ApprowApprow Member Posts: 703
    edited August 2014

    @ofekez‌ I made a template for you. http://we.tl/6OOj44EU3s

  • ApprowApprow Member Posts: 703

    @ofekez‌ I just made a quick template for you, look on the other thread. can a moderator close this one?

  • ArmellineArmelline Member, PRO Posts: 5,374

    Making a second thread when people are actively trying to help you is a bit insulting, and telling someone they didn't help you at all when they've clearly gone to some effort to do so is just weird. At least explain why the things he did didn't help you.

    I'll be very surprised if people keep trying to help you if you act this way.

  • ofekezofekez Member, PRO Posts: 95

    Thank !
    But its not comfortable...
    I want to know how do you do it in the simple way...
    Every XXX seconds spawn "Top pole" and etc?

  • ofekezofekez Member, PRO Posts: 95

    I know and i'm sorry...
    I am from Israel and i'm talking Hebrew so my vocabulary isn't so big
    and sometimes i don't know how explain what i have a problem with.

    Sorry anyway...

    Br,
    Ofek

  • ArmellineArmelline Member, PRO Posts: 5,374

    @ofekez said:
    I know and i'm sorry...
    I am from Israel and i'm talking Hebrew so my vocabulary isn't so big
    and sometimes i don't know how explain what i have a problem with.

    It's always worth trying to explain it in English, and if you think you're not being clear enough, type it out in your native language with a note asking anyone reading to translate it if they can. You'd be surprised how many different nationalities frequent these forums :D

  • ofekezofekez Member, PRO Posts: 95

    Thanks for the support :#
    I would like if @Approw‌ will also comment on this discussion. :)

    BR,
    Ofek.

  • ApprowApprow Member Posts: 703

    @ofekez‌ I understand your not an advanced user, but spawning is not the best way to do this. I tried this before to, and when you add graphics other rules etc. its going to slow down your game. in the end your way is going to be much more complicated.

  • ApprowApprow Member Posts: 703
    edited August 2014

    @ofekez‌ besides the rudeness I accept you apology. Here is another template I created for "you". http://we.tl/InoT52nKPn This is most probably the way you want it, but as I said before, you should not use this!

  • ofekezofekez Member, PRO Posts: 95

    Ok, Thank you !
    I appreciate it very much.
    Thank you for accepting my apology.

    Br,
    Ofek.

  • ofekezofekez Member, PRO Posts: 95

    Hey, Sorry for double posting but i need a simple help...
    How can i make The Distance between the first top pole and the second top pole?
    I mean, i want that in my game, the player can see in the scene a few couple of poles and not only one couple...
    couple poles= The top pole and the btm pole.

  • ImNiklasImNiklas Member Posts: 103

    @ofekez‌ If you really insists on spawning actors, you need to use a timer. You could use a rule as a timer which is more efficient, but you'll Learn about that later.

    --Timer Every [timeBetweenSpawns] seconds
    ----Change Attribute game.bottomY to random([minHeight], [maxHeight])
    ----Spawn Actor bottomPipe, x: game.screenSize.width + 100, y: game.bottomY
    ----Spawn Actor topPipe, x: game.screenSize.width + 100, y: game.screenSize.height - (game.bottomY + [distanceBetweenPipes])

    The [] tags is things you need to try out customize by yourself. Remember to put rules inside both the topPipe and bottomPipe that tells them to destroy if their x position < -100.

    I do however strongly suggest you to do as Approw said, but it's all personal preference in simple games like Flappy Bird.

  • ApprowApprow Member Posts: 703

    @ofekez‌ in the spawner actor change the time. It is now set to one sec. if you want to change the distance between the top and the bottom, go into the top pole actor and change the y value in the spawn behaviour.

  • ofekezofekez Member, PRO Posts: 95

    @Approw‌ But in your template there is no spawn actor behavior...

  • ApprowApprow Member Posts: 703

    @ofekez‌ Did you try the 2e one I've posted? http://we.tl/InoT52nKPn if you cant find the spawn behavior you seriously have to start learning the gamesalad basics first before you try anything else.

  • ofekezofekez Member, PRO Posts: 95

    Thanks, i didn't download to second template...
    Thank you very much !

Sign In or Register to comment.