User Tag List

Results 1 to 5 of 5

Thread: Launching a Projectile: Button Press works, Mouse Click does not

  1. #1
    No Products Registered

    Join Date
    Dec 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Launching a Projectile: Button Press works, Mouse Click does not

    As stated in the topic, when I try to get Player 1 to shoot a projectile, having it triggered by the Spacebar is causing the projectile to shoot just fine. Having it triggered by left or right mouseclick is resulting in red text in the event editor and no projectile being fired.

    I have two events:

    Upon pressing "Space bar" -> Launch (projectile) at speed 100 toward (cursor)

    User clicks with left button -> Launch (projectile) at speed 100 toward (cursor)

    The first one works, the second one does not. What am I missing here?

    I'm new to MMF2 and these forums (flame on!) but I used to use Klik 'n Play back in the day for what it's worth so I'm not entirely unfamiliar with some of the tricks to Click game development. I'm sure with the influx of Humble Bundlers you guys are getting a lot of stupid questions this week - well here's another to add to the pile, sorry!

    Thanks in advance.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi tgftw,

    Does this help?!

    Cheers
    John

    example_tgftw.mfa

  3. #3
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    Do you have an object set to mouse movement?

    On common problem (happens even to me like ... a couple weeks ago as I forgot )
    Is when you have an object using mousemovement you must use Player Fire 1 or he mouse clicks.

    If thats not it ... Hopefully BaconUKs example helped out but if not don't feel shy to ask again!
    No question is bad.

  4. #4
    No Products Registered

    Join Date
    Dec 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    John: Yes, the example does show me another method of shooting a projectile using your CursorPos idea. Very slick, using this method may solve my practical issue in-game.

    Jeff: I did indeed have something using Mouse Movement. I did it so that the player would look in the correct direction, but thanks to the example provided, I now understand a better way to call the Cursor Position.

    Thanks to both of you for solving my problem and explaining where I went wrong!

    After reposting this comment four or five times, I found out you can't use the (at) symbol when you're a new poster. That was really inconvenient, I tried to reply numerous times only to be told "Post denied. New posts are limited by number of URLs it may contain and checked if it doesn't contain forbidden words." Couldn't figure out for the life of me what the forbidden word was!

    Anyway, off to a good start with the community here, thanks again.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Glad we could help!

Similar Threads

  1. Button is clicked condition works even when button disabled - Beta9
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 29th May 2012, 02:29 PM
  2. Application pauses with every button press.
    By LemonyLime in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 23rd March 2012, 09:40 AM
  3. Press fire button Glitch? Design?
    By camelman in forum Multimedia Fusion 2 - Technical Support
    Replies: 30
    Last Post: 10th February 2010, 03:17 PM
  4. Can I force MMF2 to press a button?
    By Iwantmyrpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th August 2008, 05:58 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •