Faster rotation speed on keyboard control...

Started by JimmyD, Sun 14/09/2008 17:40:35

Previous topic - Next topic

JimmyD

In my setting, I've got a player controlled by keyboard (continuous presses), and sometimes changing direction from left to right takes a bit longer than feels appropriate. Is there a way to alter the speed of rotation?

Akatosh

If there is a way to alter rotation speed, it's none that I know of. You could build workaround by turning the "Player turns to face location" thing off and creating a script that turns the player "by hand". This is what I mean:

Code: ags

player.FaceLocation(player.x, player.y+10); //face down, -10 for facing up; set as you think is appropiate
Wait(5); //experimet with that delay
player.FaceLocation(player.x-10,player.y); //-10=left, +10=right


... or something among these lines. Hope that helps, and that my PDA didn't fuck up the formatting TOO much.

Akatosh

(gaah, can't edit posts in this stupid mobile phone view! :()

Or did you mean something else? That code might not work, depending on how exactly you're handling "movement by continuous key pressing" and the like. Some more insight in your control system might be nice.

SMF spam blocked by CleanTalk