Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MAZAA on Sun 12/10/2008 13:55:46

Title: !!Need some keycodes!!
Post by: MAZAA on Sun 12/10/2008 13:55:46
how can I move player character left,right and down on the arrow keys?  ???

I use ags version 2.72
Title: Re: !!Need some keycodes!!
Post by: nihilyst on Sun 12/10/2008 14:08:16
You could use THIS MODULE (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=22724.msg278823#msg278823). Don't know if it works with 3.0, though.
Title: Re: !!Need some keycodes!!
Post by: Khris on Sun 12/10/2008 14:17:39
Isn't this built-in anyway in the latest versions?
Title: Re: !!Need some keycodes!!
Post by: on Sun 12/10/2008 14:21:16
The last default template made by Rui has the keyboard movement build in, yes. I don't know if it is included in the current beta, but the last stable version has it.
Title: Re: !!Need some keycodes!!
Post by: MAZAA on Sun 12/10/2008 15:34:50
I use that script to move player character to up

if (IsKeyPressed(372) == 1)
  character[PLAYERSHIP].Walk(character[PLAYERSHIP].x, character[PLAYERSHIP].y-18);

and I think I found left arrow keycode number but player character go grazy(it go somewhere) when I test it
Title: Re: !!Need some keycodes!!
Post by: TwinMoon on Sun 12/10/2008 15:46:15
If you need the keycodes, look up "ASCII code table" in the AGS help file.
Title: Re: !!Need some keycodes!!
Post by: MAZAA on Mon 13/10/2008 13:17:22
thanks :)