Move Layers on X

Help me please. How to make the X-axis moving the entire layer by pressing a button.
Best Answers
-
tatiang Posts: 11,949
No. I want to pressing a button, moving the whole layer and all objects with which it is located.
Okay, I'm not sure why you rejected my answer. If you add that rule to every actor in a layer, the whole layer will then move when you press the mouse button and drag.
There is no magic way to move a whole layer. You have to code it.
You're going to have to explain better what you need. I'm guessing English isn't your first language, but a single sentence isn't enough sometimes to explain what you are trying to do in your game.
Can you draw a picture of what you need?New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
-
POM Posts: 2,599
@2025studio
That a bit problematic trying to help you without exactly knowing what help you need, either take you time and explain exactly what is it you need help for , or upload an image or a video.
@tatiang gave you some tips you might want to review them before you reject them.
EDIT:
If you want all the "black steps" to go down you need to give each actor the behavior to drop down the pixels , there is no behavior that say "move all layer down" you need to go to each actor and 'tell' him to do so ..
Cheers.Roy
-
tatiang Posts: 11,949
I don't know of a way to move all of the actors on a layer unless it's the ONLY layer that can do that. And in that case, my rule works great.New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
-
3xL Posts: 676
Just add a behavior or all the objects you want to move. And hen u press right or left or whatever, have EACH of those actors move with the press of the button.
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
If not, it's easier to just move the camera by having an actor that controls the camera and moves with the mouse position to scroll the view.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Brown is the background, a black individual objects, 002 is the value at which the objects will have to shift down.640x640(124.24 kB)
Фотохостинг www.fotolink.su