up and down walls
lpetrowicz
Member Posts: 12
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
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
*Flappy Word™
...
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Lump Apps and My Assets
What LumpFlapps said.
(*actually, I got 5)
Lump Apps and My Assets
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
You could use a simple bit of trigonometry to keep the walls moving up and down.
bird*flap(game.bird*flap)+walls