User Tag List

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

Thread: David N tutorial Question

  1. #1
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    David N tutorial Question

    I am trying to make my sprite crouch down

    When he crouches down, is not supposed to move.

    However, When i press left or right, the detector moves, and he stays still. When i let go of the button, he goes to where the detector is.

    Any way to fix?

  2. #2
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: David N tutorial Question

    I have not seen the Tutorial but my guess is that you just modify the action for left and right key strokes and add:

    while key "down" is pressed. And negate it.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: David N tutorial Question

    There was quite a similar thread about crouching using this movement a couple of days ago - the picture of the events might help you.

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Main=19608&Number=1396 51

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: David N tutorial Question

    Yeah I was just about to post the link to my thread, but DavidN beat me to it.

    His solution to my problem works perfectly. So just use that. You may need to look at my events though to understand the solution, but there is a pic of them in that thread.

  5. #5
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: David N tutorial Question

    could you copy and paste that code into a file and upload it?
    Because i dont when you turn the flags on/off. It would be a little bit helpful if saw the entire code.

    Also, i only saw the answer to the decelleration and accerlation question, dont see one for just not making it move while crouching

  6. #6
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: David N tutorial Question

    Quote Originally Posted by Zabooza
    Also, i only saw the answer to the decelleration and accerlation question, dont see one for just not making it move while crouching
    Don't have time to upload an example right now, but I will later.

    But to make the player stop moving, you just switch on a flag when pressing down. While that flag is on, sex X Velocity (or Horiz) to zero. Release the down button (negate while holding down), shut the flag off. That stops the character from moving. To add the acceleration/deceleration you'll have to add what DavidN suggested in the thread.

  7. #7
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: David N tutorial Question

    there is still a problem

    if the player presses down first and then left/right, it works pefectly

    however if the player presses left/right first, it does not work (the problem this time is that the crouching animation is smaller than the height of the player when standing, so i have an event that lowers the y position so that it looks like he is still on the ground, and not crouching in mid-air)(if they press left/right, and the down key, they either A.make him look like he is in mid-air B.When they press left/right first and then down, he is walking, and it looks like he is walking in the ground

  8. #8
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: David N tutorial Question

    Quote Originally Posted by Zabooza
    there is still a problem

    if the player presses down first and then left/right, it works pefectly

    however if the player presses left/right first, it does not work (the problem this time is that the crouching animation is smaller than the height of the player when standing, so i have an event that lowers the y position so that it looks like he is still on the ground, and not crouching in mid-air)(if they press left/right, and the down key, they either A.make him look like he is in mid-air B.When they press left/right first and then down, he is walking, and it looks like he is walking in the ground
    For crouch animations, never physically alter the Y position. Just simply make the crouch animation while leaving the canvas size the same height as the standing/stopped animation. Here is an example of what I mean (yes this sprite sucks. I made it in 2 seconds lol):


  9. #9
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: David N tutorial Question

    That is a fine visual example Shawn, and your sprite is not what you said it was. LOL

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  10. #10
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: David N tutorial Question

    Quote Originally Posted by nivram
    That is a fine visual example Shawn, and your sprite is not what you said it was. LOL

    Marv
    Thanks! Well I guess the proportions of the sprite are okay. Obviously if I spent more time filling it out and completing it, it actually would look pretty decent.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Question about this tutorial
    By Jacob_Miller in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 23rd July 2011, 05:49 PM
  2. Help for the custom engine by David Newton
    By idunno in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th May 2010, 04:00 PM
  3. Pinball movement in David N's platform tutorial?
    By Jocastus in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 1st May 2009, 08:24 PM
  4. Chocobreak Tutorial Question
    By ZZee in forum The Games Factory 2 - Technical Support
    Replies: 7
    Last Post: 15th November 2006, 01:24 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
  •