Joystick vs Camera problem

MrDoodleMrDoodle Member Posts: 12
edited November -1 in Working with GS (Mac)
Hi there,

I'm new to gamesalad, but i do like it a lot. I'm trying to make some simple games now, but i'm really stuck on this one.

I made a boat that you can control by a simple joystick. The boat is also the object that uses the "Camara control" behavior. Now is the problem... if the boat moves out of the "start" screen, the joystick doesn't move with it, so it leaves your screen.

I think it's quite important to keep the joystick in the screen haha, so i would like to ask you guys if there is a way to stick it to the camera.

Thanks for your time!

Comments

  • MrDoodleMrDoodle Member Posts: 12
    I uploaded the BETA game, so you can see what i mean.
    Here's the link:

    http://gamesalad.com/game/play/71697
  • firemaplegamesfiremaplegames Member Posts: 3,211
    You need to put the joystick on its own layer and make the layer not scrollable.

    On the left side, under Scene, is where you can add new layers and set the Scene attributes.
  • quantumsheepquantumsheep Member Posts: 8,188
    Put the joystick in a separate layer in the screen - call this layer 'HUD' and have everything you want to keep in it there.

    Uncheck 'scrollable'

    Then put other stuff, like your player, in a separate layer called 'moving' - have the 'scrollable' box ticked.

    Make sure all your hud stuff are in the bottom left screen in your scene (or the one furthest to the left if your scene isn't bigger height wise than 320)

    Hope that helps!

    QS :D
  • MrDoodleMrDoodle Member Posts: 12
    Wow thanks for your fast responses :D

    I didn't know about the layer feature, but i think i'm going to use that quite a lot haha.

    Thnx guys!
  • quantumsheepquantumsheep Member Posts: 8,188
    No problem

    /high fives FMG
  • MrDoodleMrDoodle Member Posts: 12
    I have updated the game with the solution in the instruction menu so if more people have the same problem, they will find the answer. Still the same link:

    http://gamesalad.com/game/play/71697
Sign In or Register to comment.