New to Fuse4-want a Faery Tale Adventure like game
-
@Willpowered thank you and I am using the DeleteShape command which is working for me to fix the problem.
-
I haven’t been able to find a method that counts the number of times a control button is pushed. So if c.l is pushed once it does thing 1, if c.l is pushed twice it does thing 2, for let’s say 5 pushes .
I’ve searched “control“ and can’t find a routine that does this.
Anyone have ideas?
Thank you
-
Counting button presses isn’t so straightforward. You might think you can just make a ‘counter’ variable then put ‘if c.l then counter = counter + 1’, but that will just zip up your counter super fast, 1 per frame. I haven’t done it yet, but my question here: https://fuzearena.com/forum/topic/1195/use-of-flags-with-button-presses will probably be relevant. Maybe.
-
I’d recommend counting when the player lifts their finger as a button press. In my programs, you will often see I don’t make an action occur until then, so as to only have registered the action once.
If you look at my small Game States Demo in the TitleScreen() function, there’s a spot where aPressed==false, meaning they let go of “c.a”. You could increment a global variable count in that spot, such as buttonAcount+=1, and then check if it’s the right count, and then do the action and reset.
-
I found a way to make it work with a pseudo mouse like movement using the analog stick lx ly. I found the JoinShape demo in the help. I shows a circle shape moving around the screen with the left analog stick. I Reduced the circle shape radius to 10 and used the Distance command between the shape and each of the menu boxes. When the circle shape is moved over the top of the menu box it changes to a black box with red letters and then unloads the old map and loads a new one. Its not ideal as I would rather press a button to cycle through the menu boxes - but it works for the most part.
Not sure what to work on next but it’s coming along.
Thanks to everyone!
-
I figured out how to press a single control button and cycle through tasks without having to use the pseudo mouse method figured out using similar code from the “JoinShape” example help command.
This better method of cycling through tasks was found using the Example help on the command “setShapeColour”.
w = 150 press = false pressCount = 0 loop clear j = controls(0) MenuPress() update() repeat function MenuPress() if j.a and !press then pressCount += 1 if pressCount >= 12 then pressCount = 0 endif press = true endif if !j.a then press = false endif if pressCount == 1 then drawImage( menubox_action, w*6, 930, 1) endif if pressCount == 2 then drawImage( menubox_inventory, w*6, 930+30, 1) endif : : if pressCount == 11 then drawImage( menubox_r, w*6+w/8+92. 930+10, 1) endif return void
-
@tdg8934 if you surround your code blocks with ``` it will format it properly (as above)
-
@pianofire great I was wondering how others did that. Guess I should look closer at the reply options.
-
-
@Martin can you tell me if I did anything wrong? I’m not sure what the link is for.
-
No, nothing wrong, but you asked about the code blocks and it's all in there :)
-
Exciting things being worked out with my FTA like game. Trying all kinds of new things out. Tambry village created has collision walls and buildings with beds, fireplaces, tables, supplies, etc. Have a 80% functional menu system with controls X B and Y. The A controls the knight character moving a sprite partial rotating sword. Learning a lot. Only issue so far is the game occasionally randomly crashes so will investigate that later. Slowly but surely it’s coming together. Have so much to to do outside of the tambry home village. I’ll try to get some pics or YouTube videos this weekend posted.
-
Here are the fruits of my labor in the games refinement. There is an opening screen now with selection of 1 of 10 characters and 1 of 3 weapons (so far). The mace I had to redraw from the Dizzy media as it was in the wrong direction and there was no way to flip it. I took a picture of the 16x16 tile Mace and edited and flipped it on my iPhone. From there I could see all the pixels and redrew it in the Fuze image editor. The characters can also show a fight sequence with their weapon like a chopping motion when pressing the A button repeatedly.
All of the buildings, walls and pathways in the Tambry village are loosely based on the FaeryTale Adventure game.
I still have to figure out how enemies can attack and come close to the character in a random like fashion. That may be One of the hardest Tasks so I might hold off on that for now.
Notice in the text it recognizes the character and the weapon. The menu is also about 80-90% done too. The game still crashes occasionally but that’s another issue to troubleshoot at some point.
-
That is looking absolutely amazing!
-
@pianofire thank you. Not too bad for my first game. Lots of dedication needed.
-
Those indoor scenes look great!
-
Wow! Stunning work!
You know you can flip sprites programmatically?
-
@vinicity I know I can rotate sprites which I do with the weapons for fighting but i didn’t see a sprite flipping command. I’ll have to recheck that. Thanks
-
-
@pianofire that explains why I’ve seen image editor images scaled too far turning upside down. Interesting