Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ishmael on Sat 03/05/2003 14:27:22

Title: Platform-style rooms
Post by: Ishmael on Sat 03/05/2003 14:27:22
I'd like to create a room where the player can't use the mouse outside of the menu, which is brought up by the ESC key. I want the room to be a sorta platfrom-game style, where the char is moved with the arrows (walk left and right, crounc (maybe), jump) and shoot or punch or kick or something with CTRL, change weapon with some keys like Z and X, change inventory item the same way, with A and S for ex, and use inv with ENTER of something like that... Is this possible without wrinting several dozen lines of code and if-conditions nested and involving all the rep_ex, on_key_press and that sort of things? Sorry for the messy explanation and the typing mistakes...
Title: Re:Platform-style rooms
Post by: Jimi on Sat 03/05/2003 14:31:46
In the manual, look at the ASCll code table. It contains the code for the keys on the keyboard.  ;)
Title: Re:Platform-style rooms
Post by: Ishmael on Sat 03/05/2003 14:51:49
 :) I have looked, but I was wondering can anybody tell how much work is needed to create this... (Or at least now I am) The first thing I thought was that is this thing possible...
Title: Re:Platform-style rooms
Post by: Pumaman on Sat 03/05/2003 14:55:45
Hehe I expect you will need lots of scripting to achieve a platform game.

You might want to take a look at Platformerius, an open-source AGS platformer that 2ma2 created:
http://www.agsforums.com/yabb/index.php?board=5;action=display;threadid=1748

It may give you some ideas.
Title: Re:Platform-style rooms
Post by: Jimi on Sat 03/05/2003 14:58:09
It is possible, and it wouldn't take much work. It all depends on whether  you can still use the mouse to activate stuff, if you needed to press enter to activate stuff, you would need to have a region, and under "if Player is standing on hotspot" you would have a script with "if (button==ENTER) {" (I can't remember what enter is)
Title: Re:Platform-style rooms
Post by: Ishmael on Sat 03/05/2003 15:00:10
Thanks, I'll see that through.  :D

----- EDIT -----

I'll see through both of those... you posted that while I wast typing this one...