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 - Paulluuk

#1
Hey Khris,

Thank you for your reply!
I actually made the game from scratch, thinking I'd learn how to use AGS faster that way.
After reading your comment though, I had another look at the demo game and found that mouse clicks are not actually automatically processed, but need to be processed through a global script:

Code: ags

function on_mouse_click(MouseButton button) {
    if (button==eMouseLeft) {
        ProcessClick(mouse.x, mouse.y, mouse.Mode);
    }
}


I was under the impression that clicks were processed automatically, so thanks for helping me find out what the problem was!

Cheers,
Paul-Luuk
#2
Hello everyone,

I've only started using the Adventure Game Studio a few days ago, and I'm sure that there is a simple solution to this problem but I can't find any documentation about it.
Upon clicking a button in my custom start menu (new game), the player is sent to a room using
Code: ags

player.changeRoom(4);


The menu itself is also a room, but with the player not showing in it (room options).
After clicking the button, however, the new room loads fine and the player is in it, but I can not use my mouse to walk around.
It only shows an "eye" (look at) mousepointer wherever I go with my mouse.

I did check if I set up the walkable area correctly, but that seems fine.

I added this code to the room:

Code: ags

function Intro1Click_AnyClick()
{
  cEgo.ChangeRoom(3);
}


but it doesn't seem to recognise the "any click" event either.

Any ideas what I might be doing wrong?
Thanks in advance!

Paul-Luuk
SMF spam blocked by CleanTalk