User Tag List

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

Thread: Ninja Gaiden type collision?

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    715
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Ninja Gaiden type collision?

    Hey Clickteam,

    You know how in Ninja Gaiden on the NES, when Ryu would get hit by an enemy or eagle or whatever, he would fly back an inch or so? How can I recreate that in the event editor? Thanks Guys!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export ModuleInstall Creator Pro
    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)
    piscesdreams's Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    921
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You can set a flag or alterable value that when the player collides with an enemy, activate the flag.
    When flag is active add 1 to alt val, set player X + or - depending on direction. Then have the sprite y position - 5 + alt val that is being added. It gives it a small sense of gravity and gives you the lift before bringing the sprite back down.
    Then when player collides back with the ground turn off the flag and set the alt val to 0.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2010
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can also make a timer if you don't want the condition to be collisioning. after x time turn "pushback" flag off, or x value to 0 if you'renot using a flag. This way you can modify the lenght (or time) of the pushback depending on the attack.

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    715
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys for responding. Piscesdreams, can you clarify some of the events you are talking about please? I understand making an Alt Valve and setting players x position. But what do you mean "have the sprite y position - 5 + alt val that is being added?" Thanks.

  5. #5
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    653
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Are you using a custom made movement setup/PMO/Built in platform movement? The way i have mine setup (can't pull it up right now, just going from memory) is having a pain group that is deactivated, and when the player collides with an enemy, it activates this group. In the pain group, i have some events set so that when facing the right direction when the group is activated, the PMO is set to jump + has an additional x velocity set at -100 i believe. The same event is used for the left facing direction, except the additional x velocity changes to 100. Also, to stop the event, i have the last bit of code saying that when the player lands on the ground, it deactivates the pain group.

  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,970
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If you are using the PMO, Warmachine's suggesting is probably the best way to handle it. Alternatively, instead of the x values, you could use the "user is holding input" commands to handle the direction. For instance, user collides with enemy while facing right, user jumps + user is holding left input key. Make sure the player's direction is facing right while still moving left (backwards) to maintain the appearance. Then just reverse and repeat for the other direction.

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    715
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Warmachine, Shawn,

    I'm not using the PMO but that sounds like the easiest way to go about this. I've been using Fusion for about a year. This will be my first Side Scrolling adventure. I'm not too familiar with PMO but I think I saw a tutorial on the website. Thanks!!!

  8. #8
    Clicker Fusion 2.5
    Warmachine's Avatar
    Join Date
    Nov 2009
    Location
    Charleston, WV
    Posts
    653
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Check out Chaos Advanced Platformer Tutorial, its a GREAT starting point for understanding how the PMO (Platform Movement Object) works. The only downside i have found to using it vs using the built in/fusion platform is that for moving objects such as things that move like pendulums or horizontal moving platforms it takes quite a bit of work to get it where it needs to be. Im still trying to figure out how to correctly make the PMO work with a pendulum platform lol. But other than that it is nothing but pros vs the built in platform movement IMO. You get soooo much more control over your objects with the PMO.

  9. #9
    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,970
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Warmachine, I hear ya about those moving platforms lol.

    Once you understand what all the conditions of the PMO are and how they work, the PMO is a breeze. It's pretty flexible if you play around with the values and whatnot.

    I wonder if there's a tutorial for the various types of moving platforms with the PMO? If not, somebody should make one.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    here is a quick tutorial how to do something like that

    http://community.clickteam.com/threads/90988-Ninja-Gaiden-Collision-Tutorial

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Can you change collision type at runtime?
    By Outcast in forum Fusion 2.5
    Replies: 1
    Last Post: 28th March 2014, 02:29 PM
  2. How to make one type of enemy faster than another type?
    By Bittergamer1886 in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 11th May 2012, 04:50 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
  •