J
Jeshuakrc
Guest
I have the following problem:
Have this level:
When the room is created, the code in Creation code of the room sets my mouse's curson in where obj_Cursor (the blue circle) is, but even if the obj_Cursor is created upon a obj_Surface (the white square), the room is restarted over and over, entering in a infinite loob.
I am trying to:
The obj_Cursor must follow the mouse´s cursor of my PC, and the room must be restarted when the obj_Cursor is touching the bachground.
That's the code of the step event of obj_Cursor:
That's the room's creation code's one:
I have tried:
Have this level:
When the room is created, the code in Creation code of the room sets my mouse's curson in where obj_Cursor (the blue circle) is, but even if the obj_Cursor is created upon a obj_Surface (the white square), the room is restarted over and over, entering in a infinite loob.
I am trying to:
The obj_Cursor must follow the mouse´s cursor of my PC, and the room must be restarted when the obj_Cursor is touching the bachground.
That's the code of the step event of obj_Cursor:
Code:
//Followoriginar cursor
x=mouse_x
y=mouse_y
//Death
if place_free(x,y){
show_debug_message("place free")
}else{
show_debug_message("not place free")
}
Code:
display_mouse_set(ins_Cursor.x,ins_Cursor.y)
- Seting the ins_Cursor(the obj_Cursor's instance of the room) to create after the other instances in Creation list.
- Inveting the code (restart the room the touching the obj_surface), and it works.
- GameMaker: Studio 1.4
- GML