Work done
* Hide the timer when it is not necessary
* If angular increment < 5, show an error message.
* "On outside stage" event added to Skateboarder object. It is triggered when the skateboarder is outside the rectangle spanned by the points (minx, maxx) and (miny, maxy) of the Stage/Background object.
* Message similar to MIT Scratch: "Broadcast message" method, "Send meesage" method, "On Receive message", On Receive message From" event. Try to load this for a demo use case. When the skateboarder is outside the stage area, a "Stop" message is broadcast. When the stage receives the "Stop" message, it will stop the simulation.
Scripts for the skateboarder
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDhG35eeg-fT3WDwbrWPfk4Zm5TeIbB30ya09zkZR-FUappscwPza3LXP7lli2WcfPSWBKlPVXVYJkxwz1CZVCQLy9aSGLzIt38Z_XOIi1XnFeabwBVLUGWYID8IBrCoSoLxK189XX66l8/s400/skateboarder.jpg)
Script for the stage
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs7V3PTBptFWZXuQr6LJkqcthgDH-noeSIPOVhhzgD3cL1W8l68gn7RoCMTL1H0O7APeolMnwF4nBq-71M-RmupvDyyHlJqXbtSSB1MNP_i73DunwOL_vcRyypMV4rr7Umlklw5kQI_hcO/s400/stage.jpg)
No comments:
Post a Comment