Littlegaard
Member
Hello! im in the making of a game where you can run around as a ghost interacting with things where it either turn it off and on or play an animation once
and ive put a code like this into object sofa
so my problem is, if i put the code into another object that needs the same interaction
it just does the sofa, which i dont understand why
any one can answer me why and maybe a solution?
ty
have a great day!
and ive put a code like this into object sofa
Code:
if (keyboard_check(vk_up)) and place_meeting(x,y+1,player) {
image_speed = 1
} else if (image_index > image_number = 1 or image_index = image_number = 1) {
image_speed = 0
}
so my problem is, if i put the code into another object that needs the same interaction
it just does the sofa, which i dont understand why
any one can answer me why and maybe a solution?
ty
have a great day!