Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | GiantIsopod | |
Old Version | Published before Godot 3 was released. |
I’m relatively new to coding for video games, so I apologize ahead of time if the answer is obvious or the question is poorly worded. I’m trying to create a top-down 2D horror/puzzle game which involves a lot of the player character flipping switches or inspecting objects. However, I can’t figure out how to make it so that the player character can activate certain nodes when the player sprite is in close proximity and looking in the direction of the object’s on-screen sprite while the player presses a specified button. An example would be like how in Lara Croft the player would have to maneuver Lara in front of a lever, face the lever, and then press a certain button on the controller for Lara to activate the lever. Thanks in advance.