Hey
I'm making a RPG at the moment, which uses multiple terrian costumes, some from different areas. My question is, What is the best way to arrange these costume's so I can use a smaller script rather than saying:
<if><< <( <{ terrian }> <=> 5 )> <and> <( <y position> <=> 180 )> >>
<set{ terrian }to( 6 )
As doing this for loads of costumes would take a lot of time, and I'm sure theres an easy way of doing this.
If you don't know what I mean look at Mayhem's project: Wandering Knight, which has 100 terrian costumes and uses N-S and E-W Co-ordinates, however only uses one area of a 10 x 10 grid. I want mine to be multiple areas.
Any help would be great
Offline
Fairly simple - use the same method I did but add a 100s digit for your different areas.
So, when your character is in area 0, row 5 column 3, you switch to costume 053
When your PC is in a new area, say area 3, then if they are in row 4 column 6 switch to costume 346.
However, you will need to make sure you have no gaps in the costumes. You can do it with a less than 10x10 area without much difficulty (I can explain later if need be) but I strongly recommend you use areas that are the same size.
Offline
Interesting...
I've been working on something similar, and after reading that thought I might be able to use it, but it only works if you've got a completely sequential set of background costumes.
So for, say, a 2x2-map area, you've got coordinates of (1,1), (1,2), (2,1), and (2,2). I thought maybe you could do "Switch to background ((10 x X-position) + Y-position))", with the costumes labelled "11", "12", "21", and "22", but when you drop a number into that block, it goes by the costume's order-number, not its name. Bah!
Hmm... there's gotta be a better way...
Offline
Mayhem wrote:
Fairly simple - use the same method I did but add a 100s digit for your different areas.
So, when your character is in area 0, row 5 column 3, you switch to costume 053
When your PC is in a new area, say area 3, then if they are in row 4 column 6 switch to costume 346.
However, you will need to make sure you have no gaps in the costumes. You can do it with a less than 10x10 area without much difficulty (I can explain later if need be) but I strongly recommend you use areas that are the same size.
Hm... Nice idea. I'll try it tomorrow.
Cheers for the help
Offline