Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - hezza

#1
QuoteYou have to define functions before you call them. Just move walkUp() above on_key_press().

Thanks! I'll remember this for the future
#2
I recently found the Keyboard Movement Module (which I will be using from now on), however I wanted to know why the test code for WASD movement didn't work.
Just curious really, so that I don't make a similar mistake in the future:

Code: AGS

//main global script file

function on_key_press(eKeyCode keycode) 
{
  if (IsGamePaused()) keycode = 0; // game paused, so don't react to keypresses
  
  if (keycode == eKeyCtrlQ) QuitGame(1); // Ctrl-Q
  if (keycode == eKeyF9) RestartGame(); // F9
  if (keycode == eKeyF12) SaveScreenShot("scrnshot.pcx");  // F12
  if (keycode == eKeyCtrlS) Debug(0,0); // Ctrl-S, give all inventory
  if (keycode == eKeyCtrlV) Debug(1,0); // Ctrl-V, version
  if (keycode == eKeyCtrlA) Debug(2,0); // Ctrl-A, show walkable areas
  if (keycode == eKeyCtrlX) Debug(3,0); // Ctrl-X, teleport to room
  if (keycode == eKeyW) walkUp();
}

  function walkUp()
{
    
    cCharacter.Walk(cCharacter.y + 20,  cCharacter.x,  eNoBlock,  eWalkableAreas);
}



The error I get is: "Error (line 30): Undefined token "walkUp"
#3
Hey there,

I am currently working on a non-commercial (for now), Sci-Fi adventure game named "Light Matter". The game is tells the story of a young adventurer looking for revenge after his home planet was destroyed by a group of religious fanatics called the "Pyresous". I have got most aspects of the game covered, the only thing I really need is some artwork. The gameplay mechanic is very similar to that of "Dark Scavenger" and I need some art with a similar feel to it (example 1, example 2), it would be great if someone come up with backgrounds and characters to fill the gap in development.

If you're interested, PM me and I will sort something out
Thanks
#4
Hi this is my first time using the forums so sorry if Im posting in the wrong place or if there is already a topic. I just finished my AGS game but Im not sure how to go about "publishing" it. Im not sure which program or file to upload as there are alot of different ones. I have ran the build.exe and everything just wondering which program to upload. Thanks!
SMF spam blocked by CleanTalk