Freehand Touch Scrolling, please!!! iPhone/iPod/iPad feature question

carlos.varela.comcarlos.varela.com Member Posts: 99
edited November -1 in Working with GS (Mac)
Is it possible to do free style like scrolling background like when you scroll your web pages on your iphone or when you scroll across your Google Map?

Imagine that you have a game like Civilizations or SymCity on where you do not have a principal actor like platforms game, just participants that you can only see or change their status like create some building or change a status of a Wall Center from closed to open, different animations for all the status.

Some HUD statics buttons actor, but freestyle or freehand scene and backgrounds.

Comments

  • carlos.varela.comcarlos.varela.com Member Posts: 99
    Can anyone help me, please?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    It's not very easy to do in gamesalad, but it can be done.

    The basic principle is this:

    You need to make a actor that controls the camera. A simple box is fine.

    In the Actor, create a Rule like this:

    Rule
    When Mouse is Down
    -----Constrain Attribute: self.Position.X To: game.Devices.Mouse.X
    -----Constrain Attribute: self.Position.Y To: game.Devices.Mouse.Y
    -----Control Camera

    In the graphic attributes for this Actor, turn Visible to False.

    Place this actor anywhere in the Scene - NOT on your HUD layer.

    That will give you the working basics of scrolling a large screen around with your mouse/finger. However, I believe you will find it gets much more complicated than that when you start building the rest of your game...
  • carlos.varela.comcarlos.varela.com Member Posts: 99
    thanks a lot! I will try this first!
  • froamerfroamer Member Posts: 29
    Hi Carlos,

    I came up against the same problem. Check out this post where I include a working example:

    http://gamesalad.com/forums/topic.php?id=5189

    I hope it helps.
  • carlos.varela.comcarlos.varela.com Member Posts: 99
    Men, thank you to much, too. ; ))
  • quantumsheepquantumsheep Member Posts: 8,188
    froamer - I tried your example last night, but all I got was a white screen...

    QS :(

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • carlos.varela.comcarlos.varela.com Member Posts: 99
    Men, thank you to much, too. ; ))
  • carlos.varela.comcarlos.varela.com Member Posts: 99
    See at "window" menu, at bottom you can see the opened project, behind the principal starting window, I don't know why, but its happen so much when open a project directly from the finder file system it take you to the blank template new creation project selected. A Bug I think like the startup image on the iphone start rotating in the another direction that you have.
  • carlos.varela.comcarlos.varela.com Member Posts: 99
    froamer:

    I am with scitunes and firemaplegames, maybe moving the camera its a better strategy, because you are not limited to one background or one object I think.
  • carlos.varela.comcarlos.varela.com Member Posts: 99
    Froamer,

    I did put your project at my porfolio:
    http://gamesalad.com/game/play/51398

    I did reduce the size of the image from 5mb to 1mb and do some changes in order to see the entire map. GS say that the limitation for iphone images is 1024x1024, your image is about 2400x1200 and I can play with it in my iphone 3g os version 3.1.2, just for your info.

    Maybe the image limitations are bigger right now with the current iphone os.

    Anyone know about the current limitations for images on the iphone?
Sign In or Register to comment.