P
Pix4r
Guest
Hello,
Basically I want to make a system in my game where when I press spacebar a cone in front of player appears and if some object is in front of the player and the cone touches it, it will be collected into inventory (and dissapears from the room). If I simplify what I mean by object lest say like table, apple, bug, lamp, chair etc. many objects but I dont want to make(program) collision with every object separately. Is there some way to group them into like obj_item which would contain all of them but still know which one is which?
I don't need exact solution just if you know where I can learn how to do that I would be grateful!
Thanks everyone for reading/helping
Basically I want to make a system in my game where when I press spacebar a cone in front of player appears and if some object is in front of the player and the cone touches it, it will be collected into inventory (and dissapears from the room). If I simplify what I mean by object lest say like table, apple, bug, lamp, chair etc. many objects but I dont want to make(program) collision with every object separately. Is there some way to group them into like obj_item which would contain all of them but still know which one is which?
I don't need exact solution just if you know where I can learn how to do that I would be grateful!
Thanks everyone for reading/helping