War Battles Tutorial Problems

Hi,

I have ran into some issues when following the tutorial for war battles for one in the readme.md the syntax for _ statements does not show at all so for new lua users this can throw you off a little as i come from c background so seeing a statement such as - go.set_rotation(vmath.quat()) the _ is missing on the documentation as it does not show it in the read me syntax as i like to type out everything instead of copy paste.

Another issue i have is that i have a small screen view for my resolution of 720/720 ? i made a small 16 by 14 map and its squished into the corner and is fuzzy and blurry any way of fixing this ?

And i have also noticed there is a part in the tutorial that asks you to rename the rocket.go sprite to rocket1 but later in the tutorial there is a section that makes you play a rocket explosion animation and the syntax asks for #sprite but this is not correct as it needs to be #rocket1 or vice vera.

Last issue i find is that when i fire my rockets multiple are shot instead of 1 why is this?

Im new to the engine and new to lua so please be nice im sure these issues are not really issues but normal for users but that was my experience everything else is amazing =)

Hi @daznatior and welcome!

_ statements

Hmm. I’m not sure what you are referring to? Could you perhaps elaborate a bit or perhaps post a screenshot of the issue?

…seeing a statement such as - go.set_rotation(vmath.quat()) the _ is missing…

Again, not sure what you are referring to? What “_” character are you referring to? The documentation seems ok to me.

Another issue i have is that i have a small screen view

You can make a copy of the default render script, and modify the projection matrix to fit your needs. Also note that there are also defold libraries in the asset portal that can help with these things too.

there is a part in the tutorial that asks you to rename the rocket.go sprite to rocket1

I see no mention of renaming anything or “rocket1” in the tutorial? At what line in the readme is this?

Last issue i find is that when i fire my rockets multiple are shot instead of 1 why is this?

The most common issue with firing multiple rockets, is the missing “action.pressed”. Could this be the issue?

    elseif action_id == hash("fire") and action.pressed then
        self.firing = true
    end
3 Likes