Hi there,
This is my first time using Defold outside of the tutorials, and I am creating a 3D first person shooter, set in WW2. As I understand it, Defold is more suited to being a 2D engine, however this project is for my coursework, and the exam board penalises for using Unity because there are too many wizards. Not sure about Unreal engine, however it is now too late to change it.
Q1: I have created a main menu gui, to allow the player to view controls and start and exit the game, and a corresponding collection, along with a main gui in main.collection. In the main menu, there are box nodes, with text nodes as childs. I have the background as black, and the boxes at white. When I build the game, and click on the white boxes nothing happens. Any suggestions here? I am using collection proxies to switch between the gui menus.
Q2: After I have built the game, and unsuccessfully tested it, when i reopen the console i get a rendercam error “DEBUG:SCRIPT: NOTE: rendercam - No active camera found this frame…using fallback camera. There will be no more warnings about this.”
I’ve added it as a dependency, fetched libraries, then I have made rendercam/rendercam.render as my bootstrap render script. I have also added the camera.go from rendercam to main.collection, positioned it. I am aiming for a perspective camera, and the camera is central. My settings are
Active
Near Z = 0.1
Far Z = 1000
View Distance = 0
FOV = 0.784
Use View Area
View Area = 1920x1080.
Fixed Area
I am using rendercam to use rendercam.recoil(), and rendercam.shake(). I have local rendercam = require “rendercam.rendercam” in my function init() for the script for the player. Do i also need this in main.script?
Q3: How do i create a flat map, combined with walls as obstacles? I used Tiled, and exported the tilemap, to Defold. I am planning on using a Box as a wall, and adding concrete colour on top of it. How do I go about doing this?
Thanks In Advance