FlatulenzaFiamm
Member
Hey comrades.
I hated the collision_rectangle_list function because I never understood how tf it worked.
But sadly, I need to understand it now, since I can't use anything else instead. Breh.
At first I tried to use an array as the list (the manual suggests to, and since I'm better with them, I tried with them first) but it does not seem to work.
It always displays the error: "collision_rectangle_list argument 8 incorrect type (array) expecting a Number (YYGI32)" no matter what I do.
This is the code in Step Event:
Then, exhausted, I tried using a DS list instead (creating a variable in the Create Event always called "list"), and it does not seem to work either.
The game starts, but even tho I collide with something the list value remains 0.
What am I doing wrong? And thanks for the help comrades.
I hated the collision_rectangle_list function because I never understood how tf it worked.
But sadly, I need to understand it now, since I can't use anything else instead. Breh.
At first I tried to use an array as the list (the manual suggests to, and since I'm better with them, I tried with them first) but it does not seem to work.
It always displays the error: "collision_rectangle_list argument 8 incorrect type (array) expecting a Number (YYGI32)" no matter what I do.
This is the code in Step Event:
Code:
var list = [0,1,2]
var c_muro = collision_rectangle_list(x-60,y-18,x+60,y+18,muro,true,true,list,true)
The game starts, but even tho I collide with something the list value remains 0.
What am I doing wrong? And thanks for the help comrades.