Recent Posts

Pages: [1] 2 3 ... 10
1
Development / Re: Side scrolling functionality
« Last post by Zefk on August 11, 2018, 02:13:31 am »
I updated my post and made the side-scroling script somewhat stable: here

It is not perfect, but I could make a side-scroller game with it. I hope it helps someone out there.

Remember to credit Wrightmat because it is his script. I just patched it up.

P.S. I will just silently update the post above if I find bugs.
2
Bugs & Feature requests / Re: Solarus quest editor resizing on mac
« Last post by vathox on August 11, 2018, 02:11:38 am »
The issue solved itself after restarting solarus
3
Bugs & Feature requests / Solarus quest editor resizing on mac
« Last post by vathox on August 10, 2018, 10:05:34 pm »
Hello!

When I enter the full-screen mode in solarus quest editor (1.5.3) all it does is it creates a black border around the editor and the editor itself stayed unchanged. I am using macOS High Sierra.

Image:
https://ibb.co/jHLcap

Thanks!
4
Development / Re: [Solved]Hero state question
« Last post by Zefk on August 10, 2018, 12:32:09 am »
Ah, got it and that did fix my problem. It was quite odd because the hero would get stuck on the bow state if I pressed "b" and "down" very quickly on a ladder. Not sure if that is a bug. It could just be me.

Code: Lua
  1.          
  2.           --State is a variable in hero:set_animation()
  3.           --hero:set_animation(state)
  4.           if key == "b" then
  5.             hero:start_bow()
  6.           elseif key == "down" and state == "walking" or state == "ladder" then
  7.             hero:unfreeze()
  8.           end
  9.  
5
Development / Re: Hero state question
« Last post by Christopho on August 09, 2018, 11:53:36 pm »
There is no hero:set_state() function because depending on the state you want, there are different parameters needed. Like in the treasure state, you need to specify which treasure you want. For this reason, there are separate functions instead. The one you want is hero:unfreeze(). It unblocks the hero, that is, it restores control to the player.
6
Development / [Solved]Hero state question
« Last post by Zefk on August 09, 2018, 11:47:50 pm »
I was wondering if there was a way to set the hero's state? All I noticed in the documentation was hero:get_state().

Sometimes the hero gets stuck on a certain state in my scripts and something like the following would be useful.

Code: Lua
  1. hero:set_state("free")
7
Development / Re: Problem with thrown enemies after pause
« Last post by Max on August 09, 2018, 07:04:23 pm »
Well right now, the fact that the hero throws an item on swinging the sword is the only thing that keeps this bug from being game-breaking, so maybe don't address that issue yet, haha. Also it makes sense, if you've got a shoebox or whatever in your hand then you suddenly swing a weapon you'd probably drop the shoebox :p
8
Development / Re: Problem with thrown enemies after pause
« Last post by Diarandor on August 09, 2018, 05:16:39 pm »
That (i.e. the hero throwing the item) can be avoided if you add some code to the corresponding event(s) on_key/command_pressed().
9
Development / Re: Problem with thrown enemies after pause
« Last post by Starlock on August 09, 2018, 04:56:39 am »
Yeah, using the sword causes the hero to throw the carried object.
10
Development / Re: Problem with thrown enemies after pause
« Last post by Max on August 09, 2018, 04:38:28 am »
Just to confirm, I still have this issue also. 1.5.1, though.

I did some testing a while ago, and my suspicion is that game:set_paused(false) puts the hero in an "idle" state instead of in a "carrying" state? Anyway, I think I traced the issue to game:set_paused(false), but then I forgot and never fixed it.

To reproduce it on my end, my pause screen shows a dialog and some images (that's all it does), and every time I pause when carrying an item, I get this bug.

Question- does swinging your sword force the item to be thown and reset the action button? That's how it works for me, which "solves" the issue but it's still a bug.

Pages: [1] 2 3 ... 10