I made a small but essential update to the game’s graphical aspect. There is now a 2.5D depth effect that makes the whole game more coherent and palpable. Look how the player now passes behind and in front of that stone arch.
I did that by following the advice on that topic :
Defold top-down template
Top-down game template using rendercam and kenney .
Browser demo
[x] Collisions
[x] 2/2.5D camera view
[x] Overlapping sprites depending on the pivot
2D
2.5D
[image]
[image]
Camera modes
To switch the camera view (orthogonal and perspective), enable the desired script on the main scene of the player’s game object.
Rotation of objects towards the camera is carri…
I had to take some additional steps for Rive :
Thank you for your advice!
I was afraid I would run into problems but actually swapping materials in runtime totally did the job. This works for me since I have only one rive model in my game (the player) but it is a severely limited workaround in a scenario where multiple rive models have to interact. I’ll explain briefly in case anyone wonders how to do :
Create render predicates (render.predicate() in your init function) in your render script that is drawn (render.draw() in the update func…
4 Likes