User Tag List

Page 3 of 3 FirstFirst 1 2 3
Results 21 to 22 of 22

Thread: How can I create Mario fireballs?

  1. #21
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)

    Join Date
    May 2016
    Location
    Canada
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!

    I was actually was just using the fireball's sprite itself to check for all the collisions, except I had "Use fine detection" not ticked.

    I looked at what you said and realized that I'm currently animating the fireballs by changing their angles in the event editor, so maybe that is causing the hitbox to rotate as well and cause improper collision detection.

    Looks like I'm right, I stopped animating them and made it so the horizontal loop runs BEFORE the gravity one. Now when I shoot fireballs against a wall, they explode immediately as should, and they don't explode when they hit the ground while falling at a fast speed.

    This means the only issue I have now is the fireballs spinning animations. I believe I need to create a separate hitbox object (to do all the collisions) and create 1 for every fireball I have and constantly update each one's position to follow the fireball they're tied to.

    Any ideas on how to go about this? Most of my fireball's events consist of ForEach loops and then FastLoops.

  2. #22
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jan 2007
    Posts
    235
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by CheatingPenguin View Post
    Thanks!

    I was actually was just using the fireball's sprite itself to check for all the collisions, except I had "Use fine detection" not ticked.

    I looked at what you said and realized that I'm currently animating the fireballs by changing their angles in the event editor, so maybe that is causing the hitbox to rotate as well and cause improper collision detection.

    Looks like I'm right, I stopped animating them and made it so the horizontal loop runs BEFORE the gravity one. Now when I shoot fireballs against a wall, they explode immediately as should, and they don't explode when they hit the ground while falling at a fast speed.

    This means the only issue I have now is the fireballs spinning animations. I believe I need to create a separate hitbox object (to do all the collisions) and create 1 for every fireball I have and constantly update each one's position to follow the fireball they're tied to.

    Any ideas on how to go about this? Most of my fireball's events consist of ForEach loops and then FastLoops.
    There are a few ways to approach. Use your current fireball as the hitbox (since you already have the code for it) and slap the fireball graphic on top of it.

    Always
    - Spread 1 Into Value Z of "Fireball Sprite"
    - Spread 1 Into Value Z of "Fireball Hitbox"

    Value Z of "fireball" = Value Z of "Fireball Hitbox"
    - Set XPos "Fireball Sprite" to XPos "Fireball Hitbox"
    - Set YPos "Fireball Sprite" to YPos "Fireball Hitbox"

    The easiest way to destroy these without having to check if they're linked, in my opinion is this:

    "Fireball Hitbox" collides with backdrop
    - Set flag 0 of "Fireball Hitbox" On
    - Set XPos "Fireball Hitbox" -50
    - Set YPos "Fireball Hitbox" -50

    Set your movement code to only run when Flag 0 is off.

    Now do the following:
    XPos of "Fireball Hitbox" = -50
    - Destroy

    XPos of "Fireball Sprite" = -50
    - Destroy

Page 3 of 3 FirstFirst 1 2 3

Similar Threads

  1. Mario..ish question
    By Emerson3 in forum Fusion 2.5
    Replies: 2
    Last Post: 27th April 2014, 07:42 PM
  2. Mario Bros
    By Angelfox in forum File Archive
    Replies: 58
    Last Post: 21st March 2009, 05:04 AM
  3. Mario RPG 2
    By Jacob in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th November 2007, 07:12 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
  •