RPG Battle Menus..

For questions about using Classic.

Post » Tue Nov 23, 2010 1:30 am



So I started working on a turn-based battle engine, but I'm not really sure where to start with the menus..

I want to be able to add spells to the list as you level up, scroll through the list when you get more than 3 (and have the proper arrow turn gray if you're at the top or bottom of the list) and eventually add MP amounts next to each spell. I also need to figure out a way to save the spell data.

Anyone here know anything about making these?
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Tue Nov 23, 2010 11:06 am

I'd personnally use an editable text file to list the unlocked abilities and caracteristics of your character's spells. The program counts the lines, and creates some UI for each (and reads each line containing the name of the spell, its damage range, its effects).
Instead of a text file, you can also use an array and run through it... it simply depends on how much infos you need to handle at the same time.
B
72
S
15
G
4
Posts: 311
Reputation: 11,609

Post » Tue Nov 23, 2010 3:34 pm

I made an example which is a bit of a mess I admit, using INI and Hashtable object:

[url:2rp16a5v]http://dl.dropbox.com/u/2306601/spelly.rar[/url:2rp16a5v]

Up and down arrow keys select the spells. Press space to "cast" the spell. The Global variable 'MaxItems' controls the maximum amount of spells that are shown in the list at once.

Some stuff in there is deliciously wonky, especially regarding the panel object. I don't have the patience for a more sophisticated example right now. Hope it'll be still useful in some way to you.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Wed Nov 24, 2010 3:43 am

Very useful, actually. I didn't even know where to begin with this. Thanks a lot!
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests