Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Zany on Thu 19/10/2017 10:02:59

Title: Where to "SetWalkSpeed"?
Post by: Zany on Thu 19/10/2017 10:02:59
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) Select
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 :)

Title: Re: Where to "SetWalkSpeed"?
Post by: Crimson Wizard on Thu 19/10/2017 10:15:07
"function game_start()" in the global script might be a good place.
Title: Re: Where to "SetWalkSpeed"?
Post by: Khris on Thu 19/10/2017 10:46:29
You can also set this in the character's properties in the editor. The command is mostly used to change the speed in-game.