User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18

Thread: Direction Changing + movement

  1. #1
    No Products Registered

    Join Date
    Mar 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Direction Changing + movement

    I have 2 seperate characters and want to make them both moveable at the same time, one is controled by the arrow keys but i want the other character to be controled (left and right) with F and H. I just can't seem to figure out how to make my character move using alternate controls.

  2. #2
    No Products Registered

    Join Date
    Mar 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Direction Changing + movement

    Also, anyone know how to debug save files? i get an item in one frame, but it changes to 8 in the next frame instead of keeping one.

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Direction Changing + movement

    need more info in order to help. Are you using built in movements or custom movements? also how does your save file work? using ini's or another method. Have you checked your coding isn't reproducing 8 copies f the item?

  4. #4
    No Products Registered

    Join Date
    Mar 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Direction Changing + movement

    Yeah I'm Using INIs and i've completely wipped the save files several times (of data) but it still does it.


    Also, im using a custom character. I put all his animations together etc.

    so to move left i want to use F
    and to move right i want to use H

    How exactly do i do that?

    i did try to do:

    When F is held down:
    Change Animation - walk
    face direction - left
    X("Ivan 1)-1

    and the opposite for H

    but it didnt work, he moved too slow and when i let go of F or H Ivan didnt go back to his stopped animation. What do i do??

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Location
    Suffolk, UK
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Direction Changing + movement

    With what you have there, to make the animation go back to stopped, you would also need to add code for when the buttons are not pressed.
    So for above you could put:
    [Negated] When F is held down
    + [Negated] When H is held down
    = Change animation to stopped

    If he's going too slow, you could simply increase the number of pixels he moves each frame. Would that not be suitable?

    For the saving system problem it might be best if you posted up your .mfa file so people can have a look and see what's wrong.

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Location
    Suffolk, UK
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Direction Changing + movement

    or you could just have ivan as player 2, change player 2's controls so that they are F & H instead of the default cursor keys. Then you could control the speed through the movement you have selected. I'm guessing your using a standard movement for player 1 since you don't have a problem with his controls or speed but correct me if i'm wrong

  7. #7
    No Products Registered

    Join Date
    Mar 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Direction Changing + movement

    Yeah, but when i set the speed to go faster the animation gets screwed up. when i push H to go right, everything works fine, but when i click F to go left, the character plays the run left animation but slides to the right. This is only when i set the speed up. wtf is up with it?? *Sob*

  8. #8
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Location
    Suffolk, UK
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Direction Changing + movement

    Could you upload the file and I'll see if I can spot what's wrong

  9. #9
    No Products Registered

    Join Date
    Mar 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Direction Changing + movement

    How do i do that? im new sorry

  10. #10
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Location
    Suffolk, UK
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Direction Changing + movement

    To be honest, it's been so long since I did that I've forgotten how.
    I'll try and figure it out. Give me a minute...

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Changing direction when far away good for performance?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 17th October 2012, 11:54 AM
  2. Advice in changing enemy direction
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 16th September 2011, 10:34 PM
  3. Changing vector movement direction at runtime?
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th April 2008, 09:27 PM
  4. Changing active object direction (???)
    By JohnC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 19th January 2008, 11:58 AM

Posting Permissions

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