I recently made a Maplestory Turn-based RPG based on scripts from http://wiki.scratch.mit.edu/wiki/Turn-Based_RPG, but i have a problem.
Due to my character animations, the
[blocks][/blocks]<forever> scripts seem to just show the animation then to move on to finish the sequence. If you have any solutions, please post them here or on comments in
http://scratch.mit.edu/users/guamsna
or
http://scratch.mit.edu/projects/guamsna/1299654
Thanks for all your help!
Offline
Hmm... It's very hard to create a RPG in general, let alone a turn-based one. Unless you're a former programmer at Microsoft or something, I suggest you stick to platformers.
If you really want a turn-based RPG, then try asking Archmage or Newareagle. They should be able to help. (In fact, I think that article you mentioned on the Scratch Wiki was created by Archmage.)
Offline
helltank wrote:
Hmm... It's very hard to create a RPG in general, let alone a turn-based one. Unless you're a former programmer at Microsoft or something, I suggest you stick to platformers.
Let's not discourage guamsna now, he/she is just looking for some help while designing the game.
Last edited by cheddargirl (2010-09-15 04:54:15)
Offline
I know it is difficult. But all i need is how to keep my character animations while making the command sequence still working, not skipping it.
I have a hunch it has something to do with the
[block][/block]<forever>
Offline
Oh, I see! Well, maybe the forever block is playing the character animations and for some reason deactivating the attacks?
Offline
I know that's the problem, all i need help is I want the character animations with the command scripts too. For some reason, you can't forever the enemies stances cause, all it would do is well, stand. I just need that one script adjustment to keep all the animations with working scripts, as like, it would finish the entire script, and not just loop the animation.
PS: Could me pm mods for help?
Offline
Hi there guamsna, I actually wrote the RPG tutorial article in the wiki so I think that I would be most suited to answer this question.
Your post isn't too descriptive, all that I can tell is that you are having issues with the animations? I will download the project to see what is up.
Offline
Ok, I fixed your program
http://scratch.mit.edu/projects/archtest/1300183
I can see the issue, my original RPG did not support these kind of looping animations and they are nice to have in some cases. I solved this issue with a small fix.
The main problem was that your idle animation used forever loops which stopped the broadcasts from ending and messed up the flow of the program. My solution involves using a variable to tell the character whether to play the animation loop or not. It isn't the most elegant solutions but I think that in Scratch if it works reasonably well then work with it
Also, in your emelee broadcast, one of your broadcast calls had a variable in it instead of the name of the broadcast which prevented the enemy from doing its attack animation.
If you have other issues then your first place to turn to should be this project: http://scratch.mit.edu/projects/archmage/1235930 so that you can compare the scripts.
If you have a particular issue (like this one) that goes beyond the wiki tutorial then post in the forums or leave me a note.
Offline
for the turns, do this:
<when green flag clicked>
<set{ turn }to(player1)
<when I receive[ battlestart ]
<set{ turn }to(player1)
<when I receive[ attack 1 used ]
<set{ turn }to(player2)
or something like that. Hope I helped!
Offline