Help with speed up of character.

PonyStew

  • Posts: 17
Hello everyone, i never asked anyone for something, but now i need your help. I need a behavior that will increase speed of character every time he wraps from 1 edge of scene to another. Thanks.

squirened

  • Posts: 34
What exactly are you talking about doing?

Is your actor moving left to right across the scene, being transported back to the left of the screen, then sped up?

Tuo

  • *
  • Posts: 2469
If I am reading your post correctly, control the speed with an attribute. Then, every time the warp happens, increment the attribute by 1 to get your desired effect.
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

PonyStew

  • Posts: 17
But what the algorythm of this?

Tuo

  • *
  • Posts: 2469
If you're having troubles understanding, I can only assume that you are relying on premade behaviors, which is not the way to go. Learn to code through tutorials, such as this one: http://www.stencyl.com/help/viewArticle/102/
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

PonyStew

  • Posts: 17
I know how algorythms are works, but i cant understand algorythm of my problem. I can make the character walk faster just in special zone or special X count, but how can i make the movement faster with each achieving of scene end?

Tuo

  • *
  • Posts: 2469
If you control your speed with an attribute (local if the character is just warping around, game attribute if between scenes too), you can add to that attribute, so the setting of the speed will be changed accordingly.

If you want to, search the games section of the Forge for "Demo-" and find my infinite climber; I think that one has the basic idea implemented (although it is automatic, not based on the character reaching a location).
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

PonyStew

  • Posts: 17
If you control your speed with an attribute (local if the character is just warping around, game attribute if between scenes too), you can add to that attribute, so the setting of the speed will be changed accordingly.

If you want to, search the games section of the Forge for "Demo-" and find my infinite climber; I think that one has the basic idea implemented (although it is automatic, not based on the character reaching a location).

Kay, thanks pal.