purple-businessperson-14467
09/04/2021, 6:08 AMbright-gpu-74537
09/04/2021, 6:08 AMbright-gpu-74537
09/04/2021, 6:09 AMbright-gpu-74537
09/04/2021, 6:10 AMbright-gpu-74537
09/04/2021, 6:25 AMbright-gpu-74537
09/04/2021, 6:25 AMxml
<vbox style="padding: 5px;">
<style>
#theBox.moveAnim1 {
animation: anim 1s ease 0s 1;
}
#theBox.moveAnim2 {
animation: anim 1s ease 0s 1 reverse backwards;
}
@keyframes anim {
0% {
left: 10px;
}
100% {
left: 390px;
}
}
</style>
<button id="animate" text="Animate" onclick="theBox.hasClass('moveAnim1') ? theBox.swapClass('moveAnim2', 'moveAnim1') : theBox.swapClass('moveAnim1', 'moveAnim2');" />
<absolute width="500" height="120" style="background-color: #FFCCCC;">
<box id="theBox" left="10" top="10" width="100" height="100" style="background-color: #CCCCFF" />
</absolute>
</vbox>purple-businessperson-14467
09/04/2021, 6:30 AMbright-gpu-74537
09/04/2021, 6:30 AMtrace(left, top); to moveComponent and it doesnt crash anymore... ???purple-businessperson-14467
09/04/2021, 6:30 AMbright-gpu-74537
09/04/2021, 6:30 AMpurple-businessperson-14467
09/04/2021, 6:31 AMpurple-businessperson-14467
09/04/2021, 6:31 AMbright-gpu-74537
09/04/2021, 6:32 AMpurple-businessperson-14467
09/04/2021, 6:33 AMbright-gpu-74537
09/04/2021, 6:33 AMbright-gpu-74537
09/04/2021, 6:35 AMtrace("bob"); in moveComponent also stops it crashing (animation still doesnt look like it works though)bright-gpu-74537
09/04/2021, 6:35 AMpurple-businessperson-14467
09/04/2021, 6:36 AMbright-gpu-74537
09/04/2021, 6:37 AMpurple-businessperson-14467
09/04/2021, 6:37 AMbright-gpu-74537
09/04/2021, 6:37 AMbright-gpu-74537
09/04/2021, 6:37 AMbright-gpu-74537
09/04/2021, 6:38 AMbright-gpu-74537
09/04/2021, 6:39 AMhaxe
SetTargetFPS(60);
while (!WindowShouldClose()) {
Screen.instance.update();
BeginDrawing();
ClearBackground(Colors.RAYWHITE);
Screen.instance.draw();
EndDrawing();
}
CloseWindow();bright-gpu-74537
09/04/2021, 6:39 AMhaxe
public function update() {
MouseHelper.update();
KeyboardHelper.update();
TimerImpl.update();
}bright-gpu-74537
09/04/2021, 6:43 AMSys.sleep(0.001); in the actuator also stops the crash... though still the animation doesnt actually workbright-gpu-74537
09/04/2021, 6:44 AMbright-gpu-74537
09/04/2021, 6:44 AMbright-gpu-74537
09/04/2021, 6:44 AM