Search the Community
Showing results for tags 'increase'.
-
Hi everyone, I'm developing a side scrolling mobile game for fun in my spare time. The objective is to direct a flying bee, who moves continuously to the right, between sets of honeycombs. If the player touches the honeycombs, they lose. It's effectively a replica of flappy bird. I'm trying to implement an incremental increase in velocity so the game gets harder the longer you play. - I've created a group (honeycombs) and added physics to the group - Created 20 honeycombs - Got the first dead honeycomb of our group - Set the new position of the honeycomb - Added velocity to the honeycombs to make it move left (creates the illusion of the bee flying): pipe.body.velocity.x = -200; - Kill the honeycombs when they're no longer visible - Picked where the hole will be - Added six honeycombs - Run function to add honeycombs every 1.5 seconds I'm aware I could have two different game states (easy and hard) with different velocities but I'd rather have it increase over time. Any help would be hugely appreciated! Thanks!
- 4 replies
-
- velocity
- acceleration
-
(and 4 more)
Tagged with: