I've been using all types of tile collision scripts. But no matter what code I use, I get the same error.
___________________________________________
############################################################################################
ERROR in
action number 1
of Step Event0
for object oPlayer:
tilemap_get_at_pixel argument 1 incorrect type (string) expecting a Number (YYGI32)
at gml_Script_PlayerCollision (line 115) - if(tilemap_get_at_pixel(tile_map_id, x + velocity[0], y))
############################################################################################
gml_Script_PlayerCollision (line 115)
gml_Object_oPlayer_Step_0 (line 42) - PlayerCollision();
it seems to be a problem with tilemap_get_at_pixel(), but I can't figure out what. If it helps, this is the collision code I'm currently using
___________________________________________
############################################################################################
ERROR in
action number 1
of Step Event0
for object oPlayer:
tilemap_get_at_pixel argument 1 incorrect type (string) expecting a Number (YYGI32)
at gml_Script_PlayerCollision (line 115) - if(tilemap_get_at_pixel(tile_map_id, x + velocity[0], y))
############################################################################################
gml_Script_PlayerCollision (line 115)
gml_Object_oPlayer_Step_0 (line 42) - PlayerCollision();
it seems to be a problem with tilemap_get_at_pixel(), but I can't figure out what. If it helps, this is the collision code I'm currently using