Hey guys! I have done this before with for loops but I do not think that is the cleanest way to accomplish what I want to do. Basically I have some collision code and I want the x value to be a range of numbers instead of just one number. Here is an example:
if (collide("player", x + 100, y))
{
power = 2;
}
else
{
power = .8;
}
Where x + 100 is, how would i be able to check 1-100 instead? I have done this with for loops in the past but was wondering if there was a more resource friendly way of doing so. Thank you guys!