Hey there, I’m back!
Okay, so I’ve been working hard on prepping an inventory screen. The idea is, you can use the AWSD keys to ‘move’ around the inventory (Aka light up a square). Then whatever item is lit up, the character can use, or move around to another square.
But I’m having a hell of a time with it. This is what I’m thinking.
The general idea, is if a square is lit up, I press W to go ‘Up’. The first square would switch ‘off’ and the upper quare to switch ‘on’ visually, so the player knows what square is selected. But I’ve had a punk of a time trying to get it to work, even though it felt like it should be so straight forward.
I’ve looked into inventory examples, but most of those involve using the mouse, and mine is purely key control, and I tried searching through the how to forums, finding nothing.
I know this is going to get even more complicated once I actually attempt an inventory system (luckily the Gdevelop example is very well written out, but even then I get a headache trying to understand.) I originally tried code like this,
If I wanted to move the lit up square to the right:
release key d, trigger once, animation of ‘PauseMenu’ is 1
change animation of ‘PauseMenu’ to 2
I also tried using the actual name of the animation, but it always seemed to break either way I did it. It would skip squares, or not move at all, so I suspected it was going by too fast and set up a ‘wait’ command, but that barely seemed to do anything, and I’m just a bit stressed from trying.
As you can probably guess by me writing out my code and not screenshotting it, I kept having to scrap code and no longer had it on hand. My code for this is now back to zero, and I’m trying to figure out if there is a better way to approach this.
Thanks in advance, sorry for the wall of text you guys.