Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Question, im trying to make carrying weapons and i have a doubt.

Is the glaive part of the hermits sprite or is it on another independent "layer"?

(+1)

The GLAIVE is a separate Event from the player, yes, but also so much more!

If you're not holding it, the GLAIVE is by default an event which jumps around on the layer above the player randomly while making a lot of noise for 0.3s, whereupon it Plants itself, becomes still and is on the same layer as the player.  On Touch, it switches on HOLDING GLAIVE, which makes the GLAIVE invisible but now always floating at your co-ordinates.  Based on which direction you are facing, the invisible GLAIVE summons an IMAGE OF GLAIVE to float at the player co-ordinates and point in the right direction, while also sending all other "directional visuals" of GLAIVE back to their origins.  If you RECALL GLAIVE while holding it, it EMPTIES HANDS and makes it jump from your location again, and if you aren't holding it, the GLAIVE jumps to your co-ordinates and becomes available, bouncing around randomly for 0.3s until it Plants itself.

Edit: I'm a big proponent of "whatever works", but I'm assuming there'd be an easier way to do this.  In my own experiments though, this was the best formula (!?) and I tried other avenues as well.  I tried drawing the HERMIT+GLAIVE sprite, but it wasn't wide enough (or something), whereas my floating sprite mechanism let me place a quite-long GLAIVE over the HERMIT, one which lags ever so slightly behind him (due to player movement), giving it a pleasing sense of heft.

(+1)

Sounds crazy. 

So far I have two "states", EMPTY (allows regular interaction) and HAND (allows punching/slapping), but i have to implement the 3 weapons which are long so they dont fit the character sprite. I have the on/off state for the UI which is triggered by the shift key so you can switch weapons on the run, or so is the idea. I wonder if I could do something like you say with the "show picture" command rather than an event though. I will check home game3 in hopes im getting you right and if im able to replicate something like it. Im a bit hyped after yesterdays progress (the ui and the shift item rotation)