Where to "SetWalkSpeed"?

Started by Zany, Thu 19/10/2017 10:02:59

Previous topic - Next topic

Zany

Hi

So I would like to speed up my characters movement and not the whole game's speed. I intend to make use of SetWalkSpeed from the initial start of the game. I have tried to place it in my global script I'm not sure quite where. I have tried placing it in repeatedly-execute where it throws an exception when I try an dmove my character.

If I say:
Code: ags
cEgo.StopMoving();
cEgo.SetWalkSpeed(20,20);


My character then does not move which makes sense.
Could someone please indicate where I should set my walkspeed for the overall game.

Arigato :)


Crimson Wizard

"function game_start()" in the global script might be a good place.

Khris

You can also set this in the character's properties in the editor. The command is mostly used to change the speed in-game.

SMF spam blocked by CleanTalk