@Farewell_AstralDev: You can look into the code if you want. In the _update-function I kept track of the position of the heart and if the position ist too big or too small (in my case bigger than 122 or smaller than 0) then I changed the moving-direction.
[Please log in to post a comment]