Help with interpolate/move to?

RHRH Member Posts: 1,079
edited November -1 in Working with GS (Mac)
I have an actor called camera that controls the camera. What I want is when my character overlaps with a red button the camera with move to the right by a distance just shorter than the iphone screen. I have two green areas, with a width of 40 pixels, placed at either side of the screen. When the camera moves I am trying to make it so the green area that was on the right is now on the left and a green zone that was offscreen is now located onscreen. This need to happen 10 times.

The problem I am having is that the measurements don't seem to add up. I.e. I tell it to move by +460 and it moves by about twice the distance of the iphone screen (in landscape mode). When I use interpolate they are really messed up and when i delete the interpolate rule it still seems to overwrite anything i make.

If anyone has time to take a look at this project I would be very grateful. Thanks

http://gamesalad.com/game/play/62939

P.S it's really really beginning to annoy me.

Comments

  • Rob2Rob2 Member Posts: 2,402
    The project does nothing on my 3gs? I am often an idiot...but what am I missing?
  • Rob2Rob2 Member Posts: 2,402
    ok..set up for keyboard
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi RH, had a play around with the game file and I've got what you're after. I deleted an attribute or two; changed a few variables, I think. (Should have written down what I was changing as it went, sorry...). So I'll email the revised version to you if you like, or upload it to GS, whichever you prefer.

    Hope it helps.

    :-)

    ---------------------------------------------------------------
    Spiral Gyro Games

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • RHRH Member Posts: 1,079
    @Rob2 Thanks for taking a look, but yeh, it's for keyboard.

    @gyroscope, Thanks a lot! Any chance you can upload it? I don't really
    have an email that I want to put publicly on a forum thread for GS at the moment. Thanks a lot!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    No probs; I'll get onto that now. Give me 5 mins...

    Added: here we are:
    http://gamesalad.com/game/play/62951

    ---------------------------------------------------------------
    Spiral Gyro Games

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • RHRH Member Posts: 1,079
    Thanks for the effort, but it didn't really help resolve the issue I was having.

    I think I've sorted it now but the distances that I am using still don't make any sense whatsoever.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    RH said:
    Thanks for the effort, but it didn't really help resolve the issue I was having.

    OK, I gave it a whirl! Sorry it didn't help. I thought you wanted the camera to move just enough for the green bar to still stay on-screen, i.e move the certain distance from right to left, which the revision does. Although the distances in attributes with ref. to the actual distance moved, didn't make sense to me either.

    Glad you got it sorted, anyhow.

    ---------------------------------------------------------------
    Spiral Gyro Games

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.