User Tag List

Results 1 to 6 of 6

Thread: Most effective way to switch characters

  1. #1
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Most effective way to switch characters

    In my game i'll be having a total of 4 playable characters, 1 main character and 3 to switch back and forth between when finding them. Using internal flags works great but when i try using alterable values i can't switch back to the main character. The problem i run in to is when using internal flags you just have the on and off function, that's why i tried the alterable value approach, activating and deactivating groups when they are at a certain number. Does anyone know of any other approaches to this that would be more effective or simple?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    oruga's Avatar
    Join Date
    Feb 2012
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    - 1 alt val that holds the number of the active player,
    - when a key is pressed, add 1 to your alt val (make sure to limit this value or make it 1 if its bigger than 3) then you activate a group that will make the current alt val the playable character, then you disable the group.

    You give little details, so adjust to your needs.

  3. #3
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Lol sorry about that i've tried what you have mentioned, basically the way i have each group set up is that each has its own "character switch" value number. Example, main player is 0, second player is 1, etc. Each have their own value added to each group. I have an event set for when you press Spacebar and the "character switch" equals 0 - add 1 to the alt value. This will deactivate the default group and activate the next players set. This should work but for some reason im not having any luck, that's why i was hoping there was another alternative to doing what im trying to go for.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    oruga's Avatar
    Join Date
    Feb 2012
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok here I'm attaching you an example, I hope it is useful. cheers!
    Attached files Attached files

  5. #5
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    664
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks Oruga, i'll check it out right now! I appreciate you taking the time out to help me

  6. #6
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Protip: When you press the button and add one to the value, replace the add one with Set Value to (Value + 1) mod Number_of_Characters and it will cycle back to the first one when you get to the end (as long as your first character is 0)

Similar Threads

  1. Effective color fading
    By Jesse in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th October 2012, 03:38 PM
  2. ""Play sample file~" is effective.
    By kusa in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 26th September 2012, 04:46 PM
  3. Is LUA scripting required for effective AI?
    By Tactician in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 10th January 2011, 05:22 AM
  4. Effective "Darkness" System
    By Red_Giant in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 1st September 2009, 11:18 PM
  5. Makin a Efficient & Effective Database Application
    By Sam in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd October 2006, 08:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •