Player builds up speed in an incline? How to minimize that?

mvsprojects

  • Posts: 71
Hello!
I was working a little minigame in which on eplayer controls the ground and another controls the person in the ground. Here is the problem: In an incline, the player is able to build up speed and jump higher than normal. How do I keep the player from doing this?

-MVsProjects
Boing Ball coming soon...
Co-Opetative coming soon...

MV's Projects- Something to Enable

Hectate

  • *
  • Posts: 4643
Once you know what the max speed you want is, just include a check to see if the player has exceeded that speed. If they do, set it back to the maximum.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

mvsprojects

  • Posts: 71
How will I be able to find that setting? Or do I have to find it?
Boing Ball coming soon...
Co-Opetative coming soon...

MV's Projects- Something to Enable

Hectate

  • *
  • Posts: 4643
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

mvsprojects

  • Posts: 71
Alright, now since I'm using the Jump And Run Behavoir in the Behavior library, how can I insert the block in a way in which I get the desired effect?
Boing Ball coming soon...
Co-Opetative coming soon...

MV's Projects- Something to Enable

Hectate

  • *
  • Posts: 4643
Well that's a whole other challenge, but perhaps if you just created a simple behavior to attach along with the others it might work.

Just create a new behavior and for Always (When Updating) include a simple check:

If < X-Speed of Self > MaxSpeed > MaxSpeed is a Number attribute you create
- Set X Speed for Self to MaxSpeed
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

mvsprojects

  • Posts: 71
I still cannot seem to get the actor to not build up speed in a nearly 90 degree incline and jump higher than usual. Is there a property of either actor to change? Or do I have to change an attribute?
Boing Ball coming soon...
Co-Opetative coming soon...

MV's Projects- Something to Enable

Tuo

  • *
  • Posts: 2469
If you want to, take a look at my "Demo- Platformer 1" on StencylForge. I use a custom friction coding (and then set friction to 0). It's a pretty simple (in terms of programming) idea. I just multiply the speed by a certain decimal. That decimal creates a maximum speed that is a natural progression as the acceleration will slow down as you reach "terminal velocity". It's smoother than setting a max value.

EDIT: If you take a look at the demo, check out the rest of the coding as well; then, you might be able to make your own coding instead of using the pre-mades (while they are good... they really don't allow for much expansion unless you know the coding in the first place).
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)

mvsprojects

  • Posts: 71
For some reason, it still does not seem to help me. There is no change whatsoever.

Maybe it is the fact that the platform is rotating?

Here is the game WIP, control the red box with A for left, D for right, and W to jump. Use the left and right arrows to rotate the platform. How can I change the actor's behavior, so when the platform is almost a wall, the player does not somehow climb up and jump higher than normal?

http://www.stencyl.com/game/play/16416
Boing Ball coming soon...
Co-Opetative coming soon...

MV's Projects- Something to Enable

mvsprojects

  • Posts: 71
Please disregard any replies of frustration. I was finally able to get the behavior to work. I just needed to work on a collisions behavior in which, under certain circumstances, the friction would change. This problem is now [SOLVED].

Please move.
Boing Ball coming soon...
Co-Opetative coming soon...

MV's Projects- Something to Enable