How to send signals
I'm working on my game with microScript2.0 and I need a way for one object to send a signal to another object. For example: then my "player" stands on the red circle and presses E, the object "player" sends signal to the object "door", and the "door" disappears
ok so there are to ways you can do this aabb collision or a libray's custom collision(ex: distance(x1,y1,x2,y2) from helpers)
with the helpers one who could do
if distance(player.x, player.y, circle.x,circle.y) < 10 and keyboard.press.E then
//something like door_open = true or = 1
//you oculd also add:
elsif not keyboard.press.E then
screen.drawText("Press E", 0,-20, 10, "white")
end
P1X3L_2012, this looks so simple I'm embarrassed T~T Thank you so much!
No its ok! really Its all part of the learning process. Happy I could help! :D