function on_message(self, message_id, message, sender)
if(message_id == hash("update")) then
set_sprite(self)
elseif(message_id == hash("highlight")) then
go.animate(go.get_id(), "scale", go.PLAYBACK_LOOP_PINGPONG, .33, go.EASING_LINEAR, 0.25, 0.25)
elseif(message_id == hash("end_highlight")) then
go.cancel_animations(go.get_id(), "scale")
end
end
It should just pulse until it receives the “end_highlight” message, however I never send the end_highlight messages when I’m testing. I even just now commented out the cancel_animations code and it still only expands up once.
Yes it does, it shouldn’t but it does. I put some code around it to only call it once and it works. I should track down why the multiple messages. Aaand it just pointed out a bug, too. Super.