Problem making an image slide SMOOTHLY to replace the background - MOVE TO?
StormyStudio
United KingdomMember Posts: 3,989
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...
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
now I just need to repeat this for 20 other rules... brilliant..