|
I have a question: I have followed the instructions from video "Bring on the enemies: Timer, linearDamping, angularDamping" and after multiple failures (even I copied and pasted the code given in the lessons) my spaceship does not collision against the enemies (basket ball, hammers and tvs). It could be that Xcode has been updated and the missing code (or the different code) does not appear on the video? How can I make my objects to collide between them? Thanks in advance for your help. My code:
|
|
Please refer to this link to check for the answer (basically is using a simulator with iOS 12.X.X). |
|
Hi guys, The method is working - installing a simulator with iOS 12.x does its job. I tested the game on my iPad (iOS 13.4) and everything works fine as well. Should we assume that it's just the simulator bug then? |
|
You may be using features introduced in versions later than iOS 12.4 and want to test in the simulator. It looks like the simulator is failing to create the physics model for the player only. The ball, hammer and television are working properly. A couple of other options:
1- change the player image to be a one of the working images.
|
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.