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

Topics - markbilly

#41
Critics' Lounge / A background...
Tue 06/03/2007 18:29:44
It's a derelict room in a space craft, with a machine in it...

Just any tips on anything really. Also this is the general style of my game, so any comments on style would be great too. Thanks...



There are a few objects around too. A spray can on the floor, a door, and a panel on the machine. All part of this first puzzle. So it looks a bit bare without the debris.

#42
I'm looking to achieve an inventory that appears when the mouse moves to the top of the screen, and disappear when mouse is moved off (i have this, using Mouse YPos) It has no buttons besides btnInvUp and Down.

So, when the player (right) clicks on an inventory item it needs to turn into the cursor, and when the player (left) clicks it will perform "look at inventory item".

I've tried a few things and nothing works, as the mouse modes don't accomadate for this and they seem to be messing up in the inventory anyway.

Does anyone have a simple solution to making this posssible?



Thanks in advance.


#43
I want the name of a hotspot or object to appear when the mouse hovers over it.

Currently I am focusing on the hotspot...

At the moment, I have used a GUI (gMouselabel) with a label in it (label text: @OVERHOTSPOT@)

and in "repeatedly execute" part of global script I have:

Code: ags
function repeatedly_execute() {
 
 		if (gMouselabel.Visible == true) {
			UnPauseGame ();											
	}

 gMouselabel.SetPosition(mouse.x, mouse.y);

}


This should display the gui (following the mouse) all the time, however the game should not be paused. It should also display the name of the hotspot the mouse hovers over, in the gui.

When tested, the GUI does appear and follow the mouse, however the game appears to be paused and the hotspot name does not appear.

What am I doing wrong, or is there a better way to achieve this?

I have read all the possible topics on this to no avail (in fact, that is where most of my current ideas have come from)

I know this is possible as a vast number of AGS games I have played do it.



Thankyou.
SMF spam blocked by CleanTalk