User Tag List

Results 1 to 2 of 2

Thread: Weapon rotation( Streets of Rage style)

  1. #1
    No Products Registered

    Join Date
    Oct 2011
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Weapon rotation( Streets of Rage style)

    So I've been trying to make the weapon rotate just like in the streets of rage series. If you're holding a weapon in streets of rage and an enemy hits you, the weapon goes up rotating then falls to the floor. Also, it rotates when you drop the weapon on your own without getting hurt.

    I have this code written:

    Upon Pressing "S":
    Play Collision Box Flag 1 on : Deactivate Group "Bat" - Turn Player Collision Box Flag 1 off- Turn Bat flag 1 On

    Bat Internal Flag 1 is on: Set Y position to Y position ("Bat") + 10 - Set angle to Angle ("Bat") + 22 ( Quality 0)
    Negate Bat is overlapping Floor:

    Bat Internal Flag 1 is on:
    Bat is overlapping Floor: Set internal flag 1 off ("Bat") - Set angle to 1 ( Quality 0)

    Now, as soon as i press S to drop the weapon it does a half rotation and the weapon gets stuck in the middle of the air. The reason is because as soon any part of the weapon hits the floor, the weapon will stop and set to angle 1. I just need a little help here, if anyone can give me any tips on how to accomplish this, ill be thankful.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    - When dropping the Weapon set Weapons GroundPosition_ ( Alterable Value ) to Y position of Player Character ( Players feet to be specific ).
    - Instead of doing a Backdrop verlap check, check when the Weapons Y position is greater or equal to its GroundPosition_

Similar Threads

  1. Weapon use tutorial or example?
    By gamer123 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th June 2012, 10:38 AM
  2. A Sling weapon
    By Tiger in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 1st May 2012, 11:44 AM
  3. Character Weapon Switching on the fly? {With PMO}
    By darkmanx_429 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 16th April 2012, 02:30 AM
  4. A few weapon problems!
    By RealGameMaker in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 20th August 2009, 06:45 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
  •