Flappy Bird spawn poles physics?
ofekez
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
This video has helped me out in the past.
www.mbstudios.co | Free Stuff
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 . . . .
Pole Dance?! Sounds worth waiting for...
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Sorry, i was wrong.
I'm using a 16:9 project 320x568*
@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:)!
Not really,
i meant the spawning physics...
X and Y...
@ofekez What do you want to spawn? this is more memory efficient if you mean the pole movement/physics.
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?
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.
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.
You didn't help me at all...
@ofekez I made a template for you. http://we.tl/6OOj44EU3s
@ofekez I just made a quick template for you, look on the other thread. can a moderator close this one?
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
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?
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
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
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Thanks for the support
I would like if @Approw will also comment on this discussion.
BR,
Ofek.
@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.
@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!
Ok, Thank you !
I appreciate it very much.
Thank you for accepting my apology.
Br,
Ofek.
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.
@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.
@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.
@Approw But in your template there is no spawn actor behavior...
@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.
Thanks, i didn't download to second template...
Thank you very much !