User Tag List

Results 1 to 7 of 7

Thread: How to make enemies drop items when shot

  1. #1
    No Products Registered

    Join Date
    Apr 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make enemies drop items when shot

    I am making a game where you have to shoot squares while on top of a wall. They drop diamonds which act as currency and points. How do I make it to where enemies randomly drop the diamonds (Some enemies drop them, while others don't.)

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Add "X chances out of Y at random" to the condition and use the expression editor to enter the odds you want.

  3. #3
    No Products Registered

    Join Date
    Apr 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you following me? ;P Anyways, I got that part, but how do I make it warp to one of the enemies when they are killed?

  4. #4
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Create object relative to enemy.

  5. #5
    No Products Registered

    Join Date
    Apr 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did "Add 1 chances out of 2" and added Create Relative Object to enemy. That didn't work. What I did instead to make it attach to the enemy while it is moving was set position 0,0 to (enemy). Now, all I need to do is when the arrow hits the enemy, he drops the diamon in his possesion. How to I make the diamond detach from someone when the arrow hits them?

  6. #6
    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)
    I have "Random Item" open source example on my website. Maybe you can adapt the example to suit your needs?

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

  7. #7
    No Products Registered

    Join Date
    May 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just create the item next to the monster with a chance

Similar Threads

  1. I'm trying to make enemies react "accurately" when I attack them (like Terraria).
    By edman3d in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 2nd March 2013, 06:41 AM
  2. How to make my app support Drag and Drop?
    By practicer in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 6th December 2012, 10:09 AM
  3. I want to make the Tumbling doll drop
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 22nd September 2010, 10:23 PM
  4. how do you make enemies that follow you?
    By zuloo in forum The Games Factory 2 - Technical Support
    Replies: 9
    Last Post: 5th May 2008, 11:32 PM
  5. how do you make enemies?!?!?!
    By spartan117 in forum The Games Factory 2 - Technical Support
    Replies: 8
    Last Post: 14th March 2007, 10:57 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
  •