up and down walls

lpetrowiczlpetrowicz Member Posts: 12
edited February 2014 in Working with GS (Mac)
I am looking to have split walls move up and down. Do I simply create a wall with a gap, save it as a .png and then give it motion on the x axis?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The Coding/Programming or Logic Services subforum is for PAID requests. I'll move this to the Working with GameSalad subforum.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    If you draw a wall with a gap then you won't be able to use collide rules to determine if another actor makes it through the gap. You'd need two separate walls. What is the x-axis motion for? Are you making a platformer... say Flappy Bird?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2014
    @tatiang
    If you draw a wall with a gap then you won't be able to use collide rules to determine if another actor makes it through the gap. You'd need two separate walls. What is the x-axis motion for? Are you making a platformer... say Flappy Bird?
    Tut . . tut . . . tatiang, you're just being needlessly cynical, he's working on a word puzzle game*.






    *Flappy Word™

    ...
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Lol @Socks

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • lpetrowiczlpetrowicz Member Posts: 12
    Definitely not a flappy bird thing but I can use it to describe what I want to do better. I want to be able to take and build a wall, similar stack like the pipes but have them move up and down at the same time. I said x-axis initially but meant moving up and down on the y-axis.
  • LumpAppsLumpApps Member Posts: 2,881
    I can't open a thread without seeing a Flappy Comment nowadays. Gamesalad please rename to Flappysalad.
  • SocksSocks London, UK.Member Posts: 12,822
    @LumpApps
    I can't flap a bird without flapping a flappy flap nowaflaps. Flapsalad bird reflap to Flappysalad.
    +1*

    What LumpFlapps said.




    (*actually, I got 5)
  • LumpAppsLumpApps Member Posts: 2,881
    I wonder what Lumpflapps look like. Or sockFlapps. Didn't Dagoberth Duck have those?
  • SocksSocks London, UK.Member Posts: 12,822
    I wonder what Lumpflapps look like. Or sockFlapps. Didn't Dagoberth Duck have those?
    It's actually Flappy Socks.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    First of all, I prefer FlappySalad to AngrySalad. ;)

    Second, if you're making something where walls with a gap move up and down, you can start with one of the many Flappy Bird (there I go again) templates available from this community and then add a move behavior based on position. So at the top of the Y position range, move down, and at the bottom of the range, move up.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • SocksSocks London, UK.Member Posts: 12,822
    @tatiang
    First of all, I prefer FlappySalad to AngrySalad. ;)

    Second, if you're making something where walls with a gap move up and down, you can start with one of the many Flappy Bird (there I go again) templates available from this community and then add a move behavior based on position. So at the top of the Y position range, move down, and at the bottom of the range, move up.
    @flaptiang

    You could use a simple bit of trigonometry to keep the walls moving up and down.

    bird*flap(game.bird*flap)+walls
Sign In or Register to comment.