I hoped there’d be an “object has encountered” event that would trigger only once, when the object first collides with/meets another particular object, but I don’t see one. I’d like to play a sound when my player first makes contact with something, but have the sound stop after playing once even if the player remains in contact with the object. Once the player leaves contact I’d like the sound to again play once if the player makes contact again, and so on. (I’m just trying stuff while I work on the newbie Platform game tutorial.)
If there is no such specific event, is there a simple way to suppress the event until contact is lost…or do I just have to create a variable that toggles when contact is made, but after the sound is played.
Is there also a standard way to establish that contact between objects has ceased, or will that also require some custom code?