Its. . .
Quite the pain
ive made one but its so bloated i cant edit it anymore but i did learn some things
id start by making a function or using This Extension
that when your “turn/All actions” are over runs Does all of the enemys Attacks/Actions then allows you to control your player again
Here is a small basic example I made
Thanks, however; do you know Battle Brothers? If not, look it up and see the combat system. I want something like that.
Kinda looks like advanced wars/ Fire emblem
well the Knighted link i sent was basied off of Baldur’s Gate 3 But with some modding could be similar
Press A to get through the “Menu”
feel free to take anycode you see
and if you have anymore questions or need more help @ me
- I can’t Gmail due to being on a school Chromebook, which you now know. Since you will likely respond, the school will likely block it.
- You won’t know what my account is like if I make a new one.
I tried to do something where you have several actions = how far you can see you can move.
The blue tiles are highlighted, which indicates how far you can move. However, I think they’re below the green tiles, if at all.
The game is buggy with after moving 6 times against enemy, the game is stuck nothing happenes.
oh man, lucky for you tactics games are pretty much my favorite genre!
typically the way you determine movement ranges in grid-based tactics games is by implementing an algorithm called breadth-first search (BFS). BFS is pretty tough to code in blocks; i think we did it on stream once or twice and it was a huge pain.
anyways, looking at your code i see a few issues.
firstly, inside the on game update it looks like you’re trying to make the tiles around the player turn blue:
this code won’t work because you’re passing the sprite’s x and y for the column and row. this function is expecting column and row to be in tile units, while the x and y of the sprite are in pixel units. each tile in your game is 16x16 pixels, so if you wanted to convert the x and y of the sprite into tile coordinates then you would need to divide them by 16.
luckily, there’s an easier way to do this! inside the Scene category, there is a block that gets the tilemap location of a sprite:
to get the surrounding tiles, you can also use this block in the Scene category:
using these two blocks, we can rewrite your code like this:
next it looks like you’re setting these tiles inside of an on game update. instead of doing that, i think you might find it easier if you only do it when the sprite actually moves.
to illustrate that, let’s create a function that we can call every time we move that will highlight/unhighlight tiles based on how many actions are left:
the “replace all ___ tiles with ___” block comes from the arcade-tile-util extension. you can add it to your project using the “Extensions” category.
now that we have this function, we’re going to call it in two places: on-start and inside of that action=0 function you defined:
and with that, the tiles should automatically change whenever you move!
Thanks
I made something like this but mor like Undertale/Deltarune RPG Engine
@Qaceacewace Yea i know about that bug you just have to use ALL your actions for each charecter you use menu (Or ~)to swap between them its kinda a dead game but it was a goodish turn based game till it exploded
Also i think Richard already fixed all your main issues
He stole my thunder ):
Richard is still going to have a better idea plan and execution then me anyways
But if you have any OTHER questions down the line, ask Hopefully i can beat Richard to it!
Im pretty sure about 75% of people here just use there school computers Shared part of any makecoders life, I guess
@ADM_F
YOOO the one you made is so cool! Mind if I try to get it working?
How do I increase the Field of View so the characters can see more?
You can try sure.
Knock Yourself out i have a updated version somewhere here
How do I increase the Field of view so the people who play can see more?
Ok then, I’ma revamp the game if no one gonna help me.
You forced me to revamp it fully.
Sorry about this but I’m angry VERY angry.
Ok so First
Field of view?
short answer you cant! not without a lot of code spaghetti
you can change the Screen size but that’s permanent
and you could also use This extension + Screen size code to Fake a zoom in/out But ive used it before and its bad
Second
Ive had a lot of personal work to do i am failing 2 of my classes right now and need to get them fixed so i’m sorry i haven’t be able to help you as i said
Third
The fact that this topic has been so active is insane
normally An Arcade|Help Topic dies or gets 2-3 replise with the problem stated in the main topic fixed or a link to another topic giveing the same answer or third they get ignored completely (mostly microbit stuff)
nobody here forced you to do anything
and with minimal Searching you can normally find answers to your problems
im sorry you feel this way and i hope your problems are fixed