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;
}
}
}
_253669
Member Since 14 Feb 2012Offline Last Active Apr 19 2012 12:07 AM



Find content
Not Telling
