Score based on collision avoidance

breubanbreuban Member Posts: 13
edited February 2014 in Working with GS (Mac)
Hi there, im trying to make a game inspired by flappy bird (i know i know..) im trying to figure out how to do the scoring. This is my first ever foray into coding or design or anything. Ive so far learnt how to increase score based on a collision, say actor A hits actor B then the score goes up. With flappy bird, there are two actors (two pipes) Top pipe and bottom pipe. How do i create a scoring system based on the actor going in-between two actors?

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited February 2014
    Well theres various ways to do it, see below (new template coming soon for DBA) what i did was change the score when the hazards went past a certain X position.

    I only have one solid actor for the hazard (no top or bottom) as I'm using scene wrap X & Y but it does grow so the gap becomes smaller…sometime you have to think outside the box to get the most straight forward solution.



    Below is our 3rd party suppliers Flappy Birds template available for £15.



    http://www.deepblueapps.com/jayleetemplates/

    Darren.
  • breubanbreuban Member Posts: 13
    Perfect! I figured it out thanks to you :)
  • UtopianGamesUtopianGames Member Posts: 5,692
    Glad i could help :)

    Darren.
  • andryhakimandryhakim Member, PRO Posts: 4
    Hi guys, im new with gamesalad.. im also trying to figure out how to do the scoring for flappy bird type of game. can you guys tell me with detail about the rule that I should fill in? I have no idea how to score when the actor went past the middle pipe

    Thanks
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Just posted a tutorial about it linked below:

    http://forums.gamesalad.com/discussion/64220/flappy-bird-game-tutorial

    Keep in mind it's a different method than the one mentioned above.
  • UtopianGamesUtopianGames Member Posts: 5,692
    @andryhakim in the actor that's moving left be it a pipe of hazard or whatever just do a rule if self.position.x < 20 (change 20 to suit) then change attribute score to score + 1 obviously you need to add a game integer called score.

    Btw we have over 50 free templates you can learn the basics from over at DBA.

    Darren.
Sign In or Register to comment.