Hi! I have been following the MiniGolf Tutorial, however whenever I run the game eventually the app crashes on my Iphone 7. I believe it has something to do with:
I am unsure how to resolve this, since it's an integrated part of the block system, and it usually crashes my app when the golf ball hits an edge (that's why I suspect this code above).
Update: I just tested that code disabled, and it still crashes when the ball hits and edge. I'm not sure what to do now.
This is my first post. I've seen similar posts, but no solutions I can relate to. I can live without this fix, but it would be preferred if I could stop it completely. Thanks in advance!
(PS: I also have an issue with setting the middle of images as the origin. For some reason the app says this error whenever I change it from 0.0 to anything else: "Runtime Error: Error from Companion: error: unrecognized method. (irritants: setMarkOrigin)")
Ah yes. Thank you. It's unfortunate that it's not supported for ios yet. (I'm using ImageSprites for the images I'm referring to. So yeah, the ball works.)
Is there a way to mathematically place them so that they are in the correct spots as if they were anchored in the middle? (Even though it's in the corner)
The ImageSprite is called Tee. I'm trying to place it at the bottom middle where the ball spawns. It's also not a square; and yet it seems to squish based off this code... Why?
My wanted placement example: (Ball is white, Tee is gray rectangle with dark gray spots, and left/right arrows are irrelevant atm.)
Note you could also try using the beta version on Apple TestFlight. There are a lot of bug fixes coming in the next version but it won't be released until later this year.