The Daily Click ::. Forums ::. Klik Coding Help ::. Please Please help me with this menu
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
13th February, 2009 at 05:30:45 -

http://www.mediafire.com/?sharekey=072eee5f4a438ce7d2db6fb9a8902bda

I almost have everything the way I want but I can't do this one thing without some help. I've been racking my brain over it for a few hours now and because of that I have a huge headache. I'm submitting an MFA with this post also if possible can someone contact me over aim, my aim name is mikedssx (I'll be on for many hours) I would like to explain it in this post but without seeing what I'm talking about it will sound like gibberous(SP?) Oh what the hell I'll give it a shot anyway.

Ok so I have this menu where you can select elements using 2 buttons. One button(V on the Keyboard) button is for cycling through primary elements, and another button(C on the keyboard) is for cycling through the secondary elements. In the game I've only allowed switching through all possible elements while in the pause menu. However when you are on the field(not included in this mfa) you only have the choice to switch between the two you selected in the pause menu. So lets say you selecting Fire as your primary, and Ice as your Secondary in the pause menu, when on the field you can use the switch button to cycle between Fire, and Ice. So your two choices on the field would be "Ice Primary, Fire Secondary," "Fire Primary, Ice secondary." That is all well and good and in theory it works but when you get to practice all hell breaks lose. The way I have set up the elements is by having 2 objects one primary element object which contains animations for all the elements. Each element has the same 4 animations except they have different images. The 4 animations are Primary Switch, Secondary switch, Primary Stop, Secondary stop(so I can stop the animation, though this probably isn't needed) And the second object "Secondary element" is a clone of primary, so it features everything it has.

Ok so ideally what I want to happen is this

//this code is for adding 1 to switch counter so that you can do multiple events with one button.
Upon pressing "switch" > add 1 to switch counter

//this code is for switching the elements one way, you can not have 2 of the same element on the field.
Switch counter =0 > Change "Primary Element" animation to Primary Switch
.......................> Change "Secondary Element" animation to Secondary Switch
+one action when event loops

//this code is for switch the elements back the opposite way
Switch counter =1 >Change "Primary Element" animation to Secondary Switch
.......................>Change "Secondary Element" animation to Primary Switch
+one action when event loops

//this code is to set the switch counter back to 0 continuing the loop
Switch counter =2 > set switch counter to 0
+one action when event loops

The problem with this code is it isn't saying which element of the animations are playing. This is how I want it to work since each element shares the same type of animations. I've tried other ways but each way involves putting together combinations and if I do it that way I'll have hundreds of lines of code just for that. Is there some way I can tell which animation is playing? Man this is complicated... I hope you guys understand what I'm trying to go for.

I've thought about making some kind of switch when it will set itself and by doing that it will be able to tell if Primary animation(for all elements) is playing, but I have no idea...

I imagine it would be something like this

"Primary Element" Ice Primary Animation is playing >>Set Value animation type to 1
Or
+"Primary Element" Fire Primary Animation is playing
Or
+"Primary Element" Thunder Primary Animation is playing
Or
+"Primary Element" Wind Primary Animation is playing
Or
+"Primary Element" Rock Primary Animation is playing

"Secondary Element" Ice Secondary Animation is playing >>Set Value animation type to 2
Or
+Secondary Element" Fire Secondary Animation is playing
Or
+"Secondary Element" Thunder Secondary Animation is playing
Or
+"Secondary Element" Wind Secondary Animation is playing
Or
+"Secondary Element" Rock Secondary Animation is playing

If I did something like this maybe it would link up all of the animations so that way they can be easily be placed with only 1 value between them.


Oh I set up an example of how I want it to work(sadly that is 1 object which combines the element animations, however if I do it that way I'll have to do animations for every possible combination and I just can't do that.

I really really hope I'm explaining this to the best of my ability I'm dying for help on this.

Oh and if anyone can think of any other way that I can do this please let me know. I'm not stubborn in my ways, I just want it to work so that I can get started on something else.

Anyway here is the MFA...if anyone can help me please please do

http://www.mediafire.com/?sharekey=072eee5f4a438ce7d2db6fb9a8902bda




 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


JetpackLover



Registered
  01/03/2007
Points
  212
14th February, 2009 at 07:49:59 -

Anyone anyone anyone?? I'm at a dead end here...

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
14th February, 2009 at 08:54:24 -

first of all, im tired of people posting their share key to media fire. no one wants to search through all your files to find the one we actually need.

second. nope. thats all. i got nothin else.

 
n/a

JetpackLover



Registered
  01/03/2007
Points
  212
14th February, 2009 at 09:22:51 -

I only have a few files actually...

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Mr G



Registered
  31/12/2008
Points
  178

VIP MemberPS3 OwnerI like Aliens!Attention GetterDos Rules!
14th February, 2009 at 11:16:15 -

For those lazy people: http://www.mediafire.com/download.php?hjjyghmznzd

 
Image

http://create-games.com/project.asp?id=1549

JetpackLover



Registered
  01/03/2007
Points
  212
14th February, 2009 at 12:36:13 -

Thanks Mr Green I always thought when I was copying a link it was directly to what I uploaded, but I guess not, I'll remember that for the future.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


JetpackLover



Registered
  01/03/2007
Points
  212
14th February, 2009 at 18:24:18 -

I did it guys!! I F------n did it!! I'm a Fn' genius.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Deleted User
14th February, 2009 at 20:06:44 -

That's good because I was looking it over and I was still trying to get what your overall goal was. I had a general idea, but I was trying to get how it was supposed to work with the whole menu and everything. Eh, but good that you were able to figure it out.

 

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
14th February, 2009 at 21:05:43 -


Originally Posted by DudeHuge
I only have a few files actually...



sorry. i was tired. and whenever i see "share key", i dont even bother looking through the files anymore, so i didnt notice how many files you have.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click