Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - leon

#1
Hello!

I made it!

Thank you for your help!
#2
Right, I will try again! Thank you!
#3
Development / Re: How to mantain the chest activated?
February 22, 2022, 08:18:35 PM

I´m sorry, I can´t understand (I´m noob).

What I must to learn to understand this line of code that you showed?
#4
Hi,

I want the chest to stay activated when I hit the switch, even if it hasn't opened. So when I leave the map and return, the chest remains visible and the switch has already been activated.

I tried this, but without success.

The reference is the lesson 17 on YT.

here´s the code,  first_map.lua


function map:on_started() 
  if bau_tunica:is_open() then  --"BAU_TUNICA" IS THE CHEST
    bau_tunica:set_enabled(true)
    interruptor_a:set_activated(true)  --"INTERRUPTOR_A" IS THE SWITCH
  elseif interruptor_a:is_activated() then  --this is my attempt
    bau_tunica:set_enabled(true)
  end
end

function fogo:on_interaction()
  game:start_dialog("salvar_jogo-perguntar", function(resposta)
    if resposta==1 then
      game:save()
      game:start_dialog("jogo_salvo")
    end
  end)
end

function interruptor_a:on_activated()
  sol.audio.play_sound("cursor")
  bau_tunica:set_enabled(true)
end


#5

Thank you, one of video lessons explain tha.... sort of... but now I understand!

yey!!!
#6
hello,

thanks  for  your answer!

So, the .solarus format is kind of rom file? Like the  .smg format for mega drive emulators?
#7
hello,

Is it possible to export game to a específic platform?
For instance:  export in the .exe format instead .solarus?
#8
Hello!

where to put the MIT license files?
The folder DATA is easy to know where, but what about these files?
-.gitignore
-.gitlab-ci.yml
-.luacheckrc