<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 30, 2020, at 2:51 PM, Vanderhyde, James <<a href="mailto:vanderhyde@sxu.edu" class="">vanderhyde@sxu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">I have a student who is trying to make a Frogger-style game in Alice 3. The player needs to be able to ride logs across a river. He came up with an approach to set the vehicle of the player
 character to a log, when a collision event occurs. Then when the collision ends, set the vehicle back to the scene. The approach seemed sound, so I tried it in a simplified program (attached). There seems to be problems both with collision end events and with
 setting the vehicle. Maybe because the player character is moving?
<div class=""><br class="">
</div>
<div class="">I came up with a partial fix that is still unstable but works more reliably (attached). It uses a 0-length timer to check for collisions every frame, instead of using the collision event.</div>
<div class=""><br class="">
</div>
<div class="">Any other suggestions? Or anywhere I should file an Alice 3 bug report?</div>
<div class=""><br class="">
</div>
<div class="">James<br class="">
<div class="">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
—<br class="">
James Vanderhyde<br class="">
Associate Professor and Department Chair</div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
Computer Science<br class="">
Saint Xavier University<br class="">
3700 W. 103rd St.<br class="">
Chicago, IL 60655<br class="">
773-298-3454</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space" class="">
<meta content="text/html; charset=us-ascii" class="">
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
</div>
</div>

<span id="cid:9B32F2F4634B8643B39085D7FAD090DA@namprd06.prod.outlook.com"><collision and vehicle demo.a3p></span><span id="cid:C0949DC8DBAEDE438A2E8BC2E145056D@namprd06.prod.outlook.com"><vehicle fix.a3p></span>_______________________________________________<br class="">alice-teachers mailing list<br class=""><a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">To change settings or unsubscribe visit:<br class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</div></blockquote></div><br class=""></div></body></html>