Help I REALLY, [excess "REALLY"s removed by moderator], need help with ScrollVelocity.....
..... i want to scroll using velocity but... IT DIDN'T WORK!
when gf clicked think [Help A Guy Out !] for (3) secs dance for {87} mins
Last edited by Paddle2See (2012-08-14 17:44:47)
Offline
Woah! How many "REALLY"'s is that?
BirdByte's platformer is a great example. Here is the most common way to do it (for the character/non-terrain sprite):
when gf clicked forever if <key [right-arrow v] pressed?> change [x-vel v] by (-0.2) // any negative number works end if <key [left-arrow v] pressed?> change [x-vel v] by (0.2) // any positive number works end change [scroll-x v] by (x-vel) set (x-vel) to ((x-vel) * (0.87)) endthe last line (set x-vel...) is to give the velocity a decreasing speed. The number could be as much as 0.99 (1 or over causes an error) or as little as 0.85. Whatever you want the range of speed to be.
Offline
Jodymoses wrote:
I'll try it now and there are so many 'REALLY''s that i forgot how to count
thought so
Offline
soniku3 wrote:
Jodymoses wrote:
Can anyone please give me a script for that?
when gf clicked say [can anyone help] for (3) secs stop script
I think I know what you want, is it a scrolling background, but the player can still move around and the background catches up?
Offline