Problem making an image slide SMOOTHLY to replace the background - MOVE TO?

StormyStudioStormyStudio United KingdomMember Posts: 3,989
edited November -1 in Working with GS (Mac)
Ok, nearly finished my game Quake Builder.

preview vid here:

I'm now trying to polish its edges a bit.

Currently:
On the level select screen, when you choose a level, the next scene background slides in from the right, and once it reaches the centre of the screen it jumps to the relevant scene with the same bacgkround already in place and buttons that fly in allowing you to play the level or go back.

The problem:
When the background slides in over the level select screen, it does not always hit the position needed to activate the jump to the next scene. Instead you see for .1 of a second it slide too far to the left. I've kept it working by saying if it is equal to or less than the x position goto the next scene. But it does not look professional when you see the awkward jump.

I'm sure it can be done using a different behavior but my mind is a little bit fried on this one.

I'm currently using: (lets say the user has chosen level 16)
....................
if attribute. level_select = 16

Change Image:
to 'instructions_menu_16'

Move To:
x = 240
y = 160
relative to scene
Speed 500
run to completion.

if position <= 240

Go to scene
16_instructions

.....

I'm guessing it does it due to the speed that it travels at...I like the speed it travels at so how else could I go about it.

I bet its obvious....and I'm a numnut

Cheers for any help...

Comments

  • VmlwebVmlweb Member Posts: 427
    You could use the Interpolate behaviour I think using self.position.x and self.position.y
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    oooh....new stuff...nice idea...
  • JGary321JGary321 Member Posts: 1,246
    Yup Interpolate is going to replace Move To for a lot of things. Interpolate is my best friend now. I use it for a lot. I can't remember the time before me and interpolate got together. Seems like we've been together all our lives.....Good memories....I Love You Interpolate....Will you Marry Me??
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    oh my god... just got it on with interpolate and I'm sorry JGary321 but she's just a bit too easy and worked her magic for me too...

    now I just need to repeat this for 20 other rules... brilliant..
Sign In or Register to comment.