• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Help me with this code

A

Afrent

Guest
I am making a machine if you click on it then its gonna add number by the rarity and the humian value but the left_pressed event is not working
Step event script:
//Check if

if rarity = 1 {
if humian = 1
{
global.huminan += 1;
rarity = 0;
humian = 0;
}
else if humian = 2
{
global.huminan += 2;
rarity = 0;
humian = 0;
}
else if humian = 3
{
global.huminan += 3;
rarity = 0;
humian = 0;
}
}else if rarity = 2 {
if humian = 1
{
global.huminan += 4;
rarity = 0;
humian = 0;
}
else if humian = 2
{
global.huminan += 5;
rarity = 0;
humian = 0;
}
else if humian = 3
{
global.huminan += 6;
rarity = 0;
humian = 0;
}
}
left pressed event script:
rarity = random_range(1,2);
humian = random_range(1,3);
 
Top