Jump to content


larrimo

Member Since 16 Feb 2012
Offline Last Active May 08 2012 07:38 PM

Posts I've Made

In Topic: Need help with setting up a variable

03 April 2012 - 12:06 AM

That clears up a bunch!  Thanks again.  Also, I sent you a PM.  (you might have already checked it :D)

In Topic: Need help with setting up a variable

02 April 2012 - 10:31 PM

Regarding this line of code:

globalvar smallSpriteBar;

for (i = 0; i < 6; i += 1)
{
    smallSpriteBar[i] = 0;
}


and all the others, does that go in the room creation code?

In Topic: Custom Inventory

02 April 2012 - 02:57 PM

This might actually help me with a project I'm working on. Not a game, but an app. I'm having trouble getting selected images to be replicated on a bar. Someone pointed out that using a global array might be the best thing to use. I'll have to dig into the explanations that Reefpirate gave. You've helped so many people with a few posts!

Actually, if you could pop in to this thread: http://gmc.yoyogames...howtopic=535458

and give me some pointers, I'd REALLY appreciate it.

In Topic: Need help with setting up a variable

01 April 2012 - 12:25 AM

Thanks.  I'll read through that in the next few days and try to apply and see if it helps.

In Topic: Need help with setting up a variable

30 March 2012 - 11:31 PM

Yes, you want to be using global variables, but you want to be using global arrays.

There are tutorials in the tutorial section, but quite simply the first thing the player clicks will be added to the array, and the display bar will update to show the image sprites in the array. Same with the second thing, etc.



Were you referring to something like this tutorial?

http://gmc.yoyogames.com/index.php?showtopic=105&hl=%20global%20%20array&st=0