Posted By
|
Message
|
Kyle Strait
Registered 10/01/2010
Points 154
|
23rd June, 2011 at 03:28:04 -
What am I doing wrong here?
I always have trouble with more than 3 options when its a vertical selection. Please help
When you press Down and 1 is selected 2 should be selected and one should go away. The problem is they all get selected and when you press up all but 5 get deselected. Please Help!
Example file: http://www.mediafire.com/?lsmerrpdtuqa90j
Any help I get is appreciated! Take a look at the coding and tell me whats wrong please :/ Should I go a different route than using alterable values? Keep in mind I'm a TGF2 user so no plugins please
The above post most likely bored you.
|
s-m-r Slow-Motion Riot
Registered 04/06/2006
Points 1078
|
23rd June, 2011 at 04:12:58 -
Here's what I recommend for you.
Use a single counter, or even a single global value.
Pressing up subtracts one from the counter; pressing down adds one to the counter.
If Counter < 1, set counter to 5.
If Counter > 5, set counter to 1.
And change the animation to "selected" (or in your case, Walking) if the value of the counter/global value equals that number.
If the value of the counter/Global Value is different from the item's assigned number, change the animation to Stopped/de-selected.
...
In the above example, pressing the keys changes the value. The value itself changes what the objects will look like (selected or de-selected).
Trying to coordinate several counters at the same time can be incredibly troublesome; meanwhile it can be much simpler and easier to track if you use one counter to do the work of the five you started with.
Hopefully this helps.
n/a
|
s-m-r Slow-Motion Riot
Registered 04/06/2006
Points 1078
|
23rd June, 2011 at 04:22:47 -
Here's an edited MFA for you:
http://www.let-off.com/software/examples/LevelSelectExampleEDIT.mfa
n/a
|
Kyle Strait
Registered 10/01/2010
Points 154
|
23rd June, 2011 at 05:15:13 -
wow thanks a lot! leave it to me to waaay over complicate a simple task! Haha thanks again! Much appreciated!
The above post most likely bored you.
|
|
|