Next, make sure the player has some actions. Each attack should be a folder that contains damage, name, and whatever else you want. Make a folder in the enemy called attacks. Next, you should put a list of what attacks the enemy can do inside it. So, put a bool value called playerTurn and start it off to be True (unless of course you want the enemy to start) Next (the scripting heavy part) you need to make the playing part. Whichever you do, you should probably make the NPC have an idle animation. Then, you are going to want to move the NPC accordingly, your options with this are this:ġ: You can move them into a stadium like area where the player didn’t actually challenge the NPC (like most Pokemon games)Ģ: MY FAVORITE!! Move the NPC so it is not on any trees or anything, and is farther away from the player. I suggest slightly panning to the left and the right repeatedly. One of the harder parts is you are going to have to move around the camera somewhat. Next, add a script that reacts to the prompt and opens the GUI to fight. Let’s make a test dummy, and add a prompt in it’s head. Do the same exact thing for items except. ![]() Use a scrolling frame with a bunch of buttons in it to fit all the actions the player will have. Program these to open a new ScreenGui when you click them. It doesn’t have to be too complex, just like these options: fight, item, and run (other actions you want to)
0 Comments
Leave a Reply. |