/// @arg x /// @arg y return place_meeting(argument0, argument1, oCollision); not working

Al3xX0r

Member
Hello I have oCollision and everything prepared but it just gives me this error when I try to run it and Idk what to do please help I did everything properly and the red signal error doesn't show up it shows as it works but then it gives me this error telling me it's wrong please help

___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object <undefined>:

place_meeting argument 2 incorrect type (undefined) expecting a Number (YYGF)
at gml_GlobalScript_collision (line 4) - return place_meeting(argument0, argument1, oCollision);
############################################################################################
gml_GlobalScript_collision (line 4)
 

Attachments

FrostyCat

Member
You're not doing things properly by writing scripts in GMS 2.3 using the GMS 2.2 way.

If you wrote your collision script like this in GMS 2.2:
GML:
return place_meeting(argument0, argument1, oCollision);
Starting with GMS 2.3 you need to write it like this:
GML:
function collision(_x, _y) {
    return place_meeting(_x, _y, oCollision);
}
 
Top