• 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!

GameMaker (HELP) switch statement with range of numbers as a case

M

MrEgorize

Guest
im sorry my english is kinda bad, ill try to explain what i need as simply as i can:
i want one of the cases in a switch statement to happen in a multiple situations. i want to write something like this (just as an example), but of course it is not how it would work:
Code:
switch (anim)
{
case 1,2,3:
{smthng}
case 4:
{smthing else}
case 5,6:
{smthing else}
}
 
Last edited by a moderator:
Top