Questions tagged [flappy-bird-clone]

Questions about implementing 'Flappy Bird' game mechanics & features, and variations thereof.

Flap, flap, flap. Game Over. Gnnnnn...

Creating a Flappy Bird clone may be a good starting point to learn (mobile) game development. The popularity of the app has certainly inspired many to copy and adapt the concept, and many questions evolving out of making a Flappy Bird clone revolve around common game development techniques and issues.

Note: This is a semi-serious tag. SO is getting swamped with questions of users trying to create a Flappy Birds clone - since there are recurring mechanics and gameplay issues it may make sense for users trying to create a game like Flappy Birds to be able to look up their peer's questions and answers.

151 questions
2
votes
0 answers

Libgdx Jiggering Sprite Movement

I recently got into LibGDX using the book "LibGDX Game Development By Example" (Pretty good one btw) and have been playing around with the tutorial projects for the last month. One of these games is a FlappyBird-clone (of course it is) and I decided…
Andreas
  • 21
  • 3
2
votes
1 answer

Simulating the "Change Directions on Ice" Effect

I really hope someone understands what the effect is that I am asking for. Have you ever played the games where a character is sliding one way and when you try and change the characters direction it is not immediate as they need to slow down in the…
Mike Simz
  • 3,976
  • 4
  • 26
  • 43
2
votes
1 answer

Strangely Malfunctioning Flappy Bird Code

Okay, I have Game, Bird, and Board classes. I have pipe creation, deletion, and movement code in my Game class. I was advised to not make a Pipe class and to create a pipe object. Without the pipe code, my game runs smoothly, although no pipes…
GrimThor3
  • 171
  • 1
  • 10
2
votes
1 answer

detect screen-position on two nodes

I am currently making a Flappy Bird-copy. Relax, its just for me and the learningpart, im not going to publish it, so dont hate. The bird is locked at: self.size.width/3 The pipes are generated like this: - (void)generatePipes { for (NSInteger…
simonkaspers1
  • 616
  • 4
  • 16
2
votes
1 answer

How to find is a canvas item is touching another canvas item, Tkinter

I have a program where the user controls a block and navigates through pipes, similar to the game flappy bird. I want to know if tkinter has a way of telling me if one rectangle touches or hits another. I know there is a find_overlapping method for…
user2658538
  • 367
  • 1
  • 7
  • 22
1
vote
0 answers

CS50 SHENANIGANS (error message that i dont understand)

i was taking GD50 (cs50 game dev course) lecture 1 (flappy bird) and i encountered this error: Error Bird.lua:19: attempt to index field 'wasPressed' (a function value) bird = Class{} local GRAVITY = 19.5 function bird:init() self.image =…
Felipe
  • 11
  • 2
1
vote
0 answers

Why when i click it sometimes registers and sometimes it does not register in PyGame

I Was creating another flappy bird clone and i was checking for mouse click for flapping, But it sometimes registers the click and sometimes not. I Even tried checking for key press but that did not work either. Can someone help? Here is the code,…
1
vote
2 answers

When making a score for a flappy bird clone, it gives an error when tranforming an int variable to a string one to display it in a text

I am new to Unity so Im making a flappy bird game to learn the basics. When creating the score, I had to tranform an int variable int oa string variable, but it doesnt work. Here is the code (Written in Visual Studio): using…
Roaster84
  • 13
  • 3
1
vote
1 answer

I am attempting to make game objects spawn at random points along the Y-Axis

I am attempting to make a flappybird style game that is underwater with the PC dodging mines and collecting fish to score points. The issue that I am having is that the mines spawn off screen as intended and fly across the screen, however, they…
1
vote
2 answers

How do you change the gravity scale - for one second - at the start of the game and then revert back?

I'm trying to reduce the gravity scale of my flappy bird game for approximately 1 second at start time. I want to give the player a little time cushion before he falls more quickly. I originally put the function in the start method (does a timer…
1
vote
2 answers

How to constantly alternate between sprites in an array?

Beginner: I'm following a Flappy Bird tutorial and attempting to have my bird player flap its wings continuously. The code in the tutorial video works, but I'm looking use my own code for the same functionality. I don't want to get in the habit of…
1
vote
1 answer

How to add Game Over image and play again function in Flappy Bird PyGame when sprite collides?

I am doing a flappy bird PyGame project for a computer science class. I have the main code, but when the bird collides with a pipe or the ground, it just stops. I want to add a "Game Over" image (I have the PNG) and an option to play again. I think…
1
vote
0 answers

My collision detection code is wrong and idk where is the problem and how to fix it?

I know how to put where my collision function is now but as you can see my function is wrong and I would like some help, please. Here's my collison function this.cd = function(){ ctx.clearRect(x,y1,width,y1 - y2); if (myPlayer.x >= myObstacles.x ||…
1
vote
0 answers

Flappy bird Pipes how to randomize in java the program I am using for school is JGrasp

In the paint component.graphics g I was creating pipes for my flappy bird game but I don't know how to approach making multiple pipes that are randomized. I've made the first one randomize but I don't know how to make more and have those new ones be…
1
vote
0 answers

Problems with collision and score label on a flappy bird game with Xcode

I'm new with Xcode and I'm trying to make a flappy bird game but I'm having troubles with the score and collision code, the game runs but it is infinite because the character never dies when touch the walls or ground and when I take the coins the…
1
2
3
10 11