Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Volcan on Sat 17/11/2012 01:08:12

Title: Ego walks too fast if cEgo.Move is used (Solved)
Post by: Volcan on Sat 17/11/2012 01:08:12
The player walks too fast if cEgo.Move is used. I'd like the ego would keep his speed.

Code (AGS) Select

function oObject0_Interact()
{
cEgo.Move(79, 183, eBlock);
object[0].SetView(3, 0, 5);
object[0].Animate(0,2, eOnce, eBlock);
player.ChangeRoom(2, 160, 195);
}


I can't use SetWalkSpeed because the ego is moving.

WalkSpeedX and WalkSpeedY only show the ego's x and y speed.
Title: Re: Ego walks too fast if cEgo.Move is used
Post by: Ghost on Sat 17/11/2012 03:50:34
Do you have to use the move command? cEgo.Walk is normally used to have a character walk around.
Title: Re: Ego walks too fast if cEgo.Move is used
Post by: Volcan on Sat 17/11/2012 14:18:20
I missed that. Thank you.