I am a new Defold user and going through the getting started tutorial I run into an issue where I am unable to get the factories to spawn platforms. I have gone through the tutorials twice, going so far as to completely create a second account to do it clean and neither works. can get the ground to move, no compile errors, frog jumps etc. but no platforms (Platform Mac OSX).
Note I searched the forum for a few hours looking for fixes, there were some for several issues that popped up before the factories point but nothing on this.
Is your log showing anything? Any errors? Could you print() something before the call to factor.create() so that you know that the code is running? Have you attached the script to a game object?
Hi, I changed the spawn to 400 and now the small platforms appear on the screen. problem is they appear and then fall straight through the world very slowly.
(note I would think you could spawn something off the screen and it moves into view…)
I inserted a print (pos) statement in the platform.script. what I get in the log is that it is spawning at x=391, y = 200 and slowly falling each frame cycle, they never move left.
The platform and platform_long GO’s i set collision objects on but forgot to change to kinematic.
Once I did that they stopped falling and started moving but they spawned now very close to the frog and disappeared before they reached the left edge. (I assume the falling was due to being set as dynamic with a mass of 1 so gravity was at play…damn Newton).
set the script back to spawn at 1600 so they spawn further to the right…
edit the platform go’s so that the graphic and collision object were centered on the x y grid at 0,0 that fixed the early disappearance.
Well this is my first game engine, first game ever and learning fast…addictive. Was about to start reading the manual (shhh don’t tell my wife she thinks I don’t need them).