Move Layers on X

2025studio2025studio Member Posts: 10
edited May 2012 in Working with GS (Mac)
Help me please. How to make the X-axis moving the entire layer by pressing a button.

Best Answers

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    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?
  • POMPOM Posts: 2,599
    edited May 2012 Accepted Answer
    @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.
    Photobucket Roy
  • tatiangtatiang Posts: 11,949
    Accepted Answer
    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.
  • 3xL3xL Posts: 676
    Accepted Answer
    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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Are you wanting to allow the player to tap and draw an actor such as a background, or are you wanting to move the camera view when the player swipes?
  • 2025studio2025studio Member Posts: 10
    I want to by pressing a button move the entire layer with all the objects on this layer along the X axis or Y
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2012
    If you really need the actors to move, this works (the attributes I added are "real" types):

    image

    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.
  • 2025studio2025studio Member Posts: 10
    edited May 2012
    No. I want to pressing a button, moving the whole layer and all objects with which it is located.
  • 2025studio2025studio Member Posts: 10
    edited May 2012
    I can not insert the picture.
  • 2025studio2025studio Member Posts: 10
    edited May 2012
    image

    640x640(124.24 kB)
    Фотохостинг www.fotolink.su
    Brown is the background, a black individual objects, 002 is the value at which the objects will have to shift down.
  • 2025studio2025studio Member Posts: 10
    No. I want to complete a single layer with all objects that are placed on it, moved on the X axis. And the other layers remain in place. Sorry for my English. For reject too sorry.
Sign In or Register to comment.