Sensing Reporters
distance to [mouse-pointer]
dist = distance_to_mouse_pointer();
(distance to [mouse-pointer v])
distance to ()
dist = distance_to("sprite_name");
(distance to (sprite_name v))
touching [mouse-pointer]?
is_touching = touching_mouse_pointer();
<touching [mouse-pointer v]?>
touching [edge]?
is_touching = touching_edge();
<touching [edge v]?>
touching ()?
is_touching = touching("sprite_name");
<touching (sprite_name v)?>
key () pressed?
is_pressed = key_pressed("up arrow");
<key (up arrow v) pressed?>
mouse down?
is_mouse_down = mouse_down();
<mouse down?>
mouse x
mx = mouse_x();
(mouse x)
mouse y
my = mouse_y();
(mouse y)
loudness
sound_level = loudness();
(loudness)
timer
time_elapsed = timer();
(timer)
current [year]
year = current_year();
(current [year v])
current [month]
month = current_month();
(current [month v])
current [date]
date = current_date();
(current [date v])
current [day of week]
day = current_day_of_week();
(current [day of week v])
current [hour]
hour = current_hour();
(current [hour v])
current [minute]
minute = current_minute();
(current [minute v])
current [second]
second = current_second();
(current [second v])
days since 2000
days = days_since_2000();
(days since 2000)
username
user = username();
(username)
touching color ()?
is_touching_color = touching_color(0xff0000);
<touching color (#ff0000)?>
color () is touching ()?
is_color_touching = color_is_touching_color(0xff0000, 0x00ff00);
<color (#ff0000) is touching (#00ff00)?>
answer
user_answer = answer();
(answer)
difficult to name thing of thing block
backdrop_number = "Stage"."backdrop #";
([backdrop #] of (Stage v))