Hello. Please, I need help here. This script works really good on GED, but not on exported version.
When the user press space key AND hero distance from the door is smaller than 60 pixels, so play a door sound. Simple! But I detected that the distance function is not working on the exported version. May anyone help me?
Key down > Space > Script Editor:
if (distance(x,y,door.x,door.y)<60) {
PlaySound2("data/door.wav", 0.233333, 1, 0.000000);
}