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

#1
Thank you guys! It works like a charm and I'll certainly keep the tip about the = marks in mind.
#2
I'm having trouble trying to figure out some scripting using an 'if' function. My intention is that if one object's visibility is turned off by a mouse click that this will trigger another item's visibility to turn on. I've been scanning through the video tutorials for some guidance, as I recalled seeing if functions being used there, and I've had a look through the AGS wiki too. I'm probably missing something, but any help would be really appreciated.

My code looks like this:

Quote
function carkeys_AnyClick()
{
carkeys.Visible = false;

if (carkeys.Visible = false){
carkeyicon.visible = true;}
}

I tried to run this code but the error I get is

Quote
Error (line 33): Parse error in expr near 'carkeys'

The thing is, I'm not sure what that even means.
#3
Quote from: Khris on Tue 25/05/2010 16:30:20
Inside game_start, put
  mouse.Mode = eModeInteract;
How did you disable the cursors? It sounds like you just changed the image property to a blank sprite slot. Cursors have a "standard cursor mode" property which you need to set to false, then e.g. SelectNextMode() will skip them.

Check on_mouse_click for the piece of code that'll select the previous/next cursor mode.

Thank you so much! Lord knows what I did, but your help has scrubbed out all the issues.
#4
Hello,

I'm fairly new to AGS, but I've been doing a lot of reading up and snooping around for code related issues. There is one, however, that has me completely stumped and unable to find an answer to in the manual or the forums (I'm hoping I haven't just missed it!).

For my game I only want there to be two mouse modes: Pointer and Interact. I've disabled all the other mouse modes using the mouse.DisableMode functions and that seems to work fine. But, here is my dilemma. When the game starts up, there is no cursor. At all. I have to scroll the wheel on my mouse downwards for it to show up the Interact mouse mode. Cycling through results in about two more blank cursor modes before it gets back to the Interact one. The Pointer mouse mode is entirely skipped out. I also checked to make sure I hadn't disabled it by accident.

Does anyone have a clue what's up or a way to get around the issue?

Also, is there a way to set the mouse to a specific mode upon start up? E.g. have the Interact cursor as the default cursor at the start of the game.

Like I said, I've tried to find a solution to this on my own but have had no luck. Any help would be appreciated.

Cheers, AGS forum goers!
SMF spam blocked by CleanTalk