goplus / spx

spx - A Scratch Compatible Go/Go+ 2D Game Engine for STEM education
https://builder.goplus.org
Apache License 2.0
103 stars 28 forks source link

Collision detection: The dragon fails to reach its target during step #421

Open JiepengTan opened 1 week ago

JiepengTan commented 1 week ago

test project : tutorial/02-Dragon

02_shark

JiepengTan commented 6 days ago

The reason for this issue is that the sprite's collision detection isn't updated immediately after the character's position changes. This results in a problem where collision detection only occurs during rendering. At that moment, the character might not actually collide with the target, leading to the rendered character being quite far from the target, which causes a noticeable difference from the Spx1