Jump to content


_253669

Member Since 14 Feb 2012
Offline Last Active Apr 19 2012 12:07 AM

Topics I've Started

for statement

07 April 2012 - 02:15 PM

hi,

I was trying to use the 'for statement'  to scroll through all weapon using the wheel of the mouse. But nothing happen even thought I have collected the power_up (pu_2) . Where went wrong ???

this is the code :

{
    var i
    // The for statement First statement1 is executed. Then the expression is evaluated. If it is true, statement 3 is executed; then statement 2 and then the expression is evaluated again. This continues until the expression is false.
    // since this is a loop statment it scrolls through all weapons
    for (i = 0; i < gunmax; i = i +1)
        {
            // and if it finds that pu_2 (short for power_up 2) is true
            if mouse_wheel_up ()
                if instance_exists(pu_2)
                    {
                        weap = 1;
                    }
        }
        }

keyboard check

07 April 2012 - 08:33 AM

is there a command statement to check whether if the player have scroll the mouse wheel?

Array

07 April 2012 - 01:30 AM

what is array ? (yes I know I can go click the help button and read the definition)  but the definition is too complex to understand. in a simple term what does array do and when is it use ??

scoreboard

01 April 2012 - 07:58 AM

Whenever I play clear a stage in metal slug, there will be this score board that will do a literate count of how much u score. is it possible to mimic it using gamemaker?

timeleft variable

29 March 2012 - 08:00 AM

how do I switch off the timeleft variable when I reach the game over stage? So I can use it as score point