User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 27

Thread: Pong: How to have ball stick to paddle and launch when left click of mouse

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid 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)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Simple level-loader

    Rubes, here's a simple method to create levels and load them in the same frame. It might be hard to understand for beginners, but I commented it as good as I could
    Attached files Attached files

  2. #12
    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 think I used the older version of INI++. Sorry.

    I will upload version 1.0 somewhere.

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

  3. #13
    No Products Registered

    Join Date
    Feb 2012
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rubes, I also made a level editor recently, but it's not commented and uses INI++ v1.5.

    If you need it gimme a shout and i'll comment and upload it.

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    rubes's Avatar
    Join Date
    May 2011
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Blub, Nivram and Popcorn, you guys are awesome. I'm at work now, so i don't have access to mmf, and just before leaving this morning, i heard a big bang and lost all my power (it's been hot in minneapolis lately and i think that may have something to do with this). hopefully i have power when i get home, and will look at these examples then. I completely comprehend the WHY part of doing a level editor instead of frames, let's hope i can wrap my head around the how portion.

  5. #15
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    rubes's Avatar
    Join Date
    May 2011
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Popcorn, you've got a very well done demo there. I've run it and read through it, modified it and it all make sense to me. I'm not saying i could create this from scratch, but this gives me a great model and with some repetition, i will be able to replicate this. Time for me to play around now

  6. #16
    Clicker Fusion 2.5 DeveloperAndroid 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)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Rubes! I am glad to hear you found it useful
    Now make some awesome break-out game!

  7. #17
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    rubes's Avatar
    Join Date
    May 2011
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, I'm trying. I have taken your example and tried to reconstruct it in a project I have started from scratch. I'm trying to just populate the screen with blue blocks, if i get this loop right, the others will fall into place, but it is not putting the blocks on the screen. Can you help me understand where i went wrong on this?
    Attached files Attached files

  8. #18
    Clicker Fusion 2.5 DeveloperAndroid 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)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Yeah, you need to get rid of the quotes around yes in the alterable string. When you code, you use quotes to tell mmf that this is a string, but when you type it in the alterable string in the frame editor, the quotes will be part of the string.
    Also, add 'only one action when event loops' in the event that creates the level.

    And an advice, don't use the mouse-movement if you don't really have to. Instead use static movement and code the it in the eventeditor by setting x = xmouse and y = ymouse.

    Other than that it seemed nice

  9. #19
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    rubes's Avatar
    Join Date
    May 2011
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, i'm coming along here. That bit about the quotes is invaluable. I'd be pulling my hairs out without that one.

    Which line are you talking about for this one?
    Also, add 'only one action when event loops' in the event that creates the level.

    I know everyone is down on the mouse movement, and i'll address that in the future, with another one of your tutorials on fast loops so i can set the speed and have perfect collision detection I've got the printout of that to my left

  10. #20
    Clicker Fusion 2.5 DeveloperAndroid 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)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    You have:
    * LevelCleared of paddle = "yes"
    - Start loop "ReadRow"

    This event will start the loop all the time as long as LevelCleared of paddle = "yes". If you add a 'only one action when event loops' condition below it, it will make the even run only once, since you don't want it to keep making the level over and over again.

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. Pong Tutorial - Ball direcction respect from paddle zone
    By Matriax in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 30th December 2012, 03:46 PM
  2. Mouse movements and left click
    By videogiochi in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th January 2011, 03:38 PM
  3. shooting at a mouse object with left click
    By vincent in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 21st June 2009, 04:24 AM
  4. Ball and paddle example
    By nivram in forum File Archive
    Replies: 0
    Last Post: 8th December 2008, 11:11 PM
  5. Left Mouse click with additional condition problem
    By maVado in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th July 2007, 12:19 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
  •