well, I was trying to make a system that when you're colliding with the obj_mosca{
eat = true
}
,and when it's not{
eat = false
}
and when eat = true and the keyboard_check (vk_space) {
instance_destroy ();
}
but even if the player is not colliding, when pressing space the obj_mosca is destroyed, I don't know how to fix it, I need help
I also can't finish this code, what I mean by it is: if eat = false && keyboard_check (vk_space)
{
}
nothing happens, using this code i hoped nothing would happen if eat = false, and i believe this is the problem. plz help me
My code:
eat = true
}
,and when it's not{
eat = false
}
and when eat = true and the keyboard_check (vk_space) {
instance_destroy ();
}
but even if the player is not colliding, when pressing space the obj_mosca is destroyed, I don't know how to fix it, I need help
I also can't finish this code, what I mean by it is: if eat = false && keyboard_check (vk_space)
{
}
nothing happens, using this code i hoped nothing would happen if eat = false, and i believe this is the problem. plz help me
My code:
help - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com