Updated for Xcode 9.3 and Swift 4.1. Learn how to make a Candy Crush-like mobile game, using Swift and SpriteKit to animate and build the logic of your game.
I see we still have this error when trying to run on the simulators. It runs, but when you try to move a tile this happens. failed assertion: inChannelsPerFrame >= 4
i have the same error as shanghaitimes…
on my iPhone 7 everything works, but in the Simulator i always got this error as soon i want to swipe.
I have the newest Mac OS and Xcode.
Can you give that project a spin and let me know if you still see the error?
If the downloadable project runs error-free, you can compare that to your project. Or send me your project as a zip file and I’d be happy to take a look.
Can you give that project a spin and let me know if you still see the error? (You can give yourself more moves per level by editing “moves” in the level json – that Level_4 is a killer!)
If the downloadable project runs error-free, you can compare that to your project. Or send me your project as a zip file and I’d be happy to take a look.
Hi @dpalme! Yes, you can access cookie.cookieType. For example, you can add a print statement after if let sprite = cookie.sprite to print out the cookie type to your console
thanks for your reply.
The error still accours, but only in the simulator and not on real devices.
Nevermind i solved it, as is commented all sound out - then it will work.
I can change the value of the CookieGrid from one Cookie type to another, but how can i also change the sprite of the cookie to the new picture within level.swift?
many thanks!