User Tag List

Page 7 of 8 FirstFirst ... 5 6 7 8 LastLast
Results 61 to 70 of 76

Thread: Random questions about my game

  1. #61
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    What you're looking for is "flocking". There is actually an extension that does this, though I don't know what platforms it supports aside from PC.

    Here is a flocking example that uses no extensions though, so feel free to study it!

    http://community.clickteam.com/threads/71345-Flocking-(no-extensions)-opensource?p=527280#post527280

    Download the bottom-most version.

    Also the flocking extension has the feature where the objects avoid obstacles as well. This shouldn't be too hard to implement into the example I linked though.

    Of course, you're going to want to tweak this a lot so it fits with your game, but the general idea of keeping objects separated while following a target is there.

  2. #62
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again Konidias,
    the example file def looks cool. Seems to be pretty complicated stuff though. But I guess no smart AI is ever easy to make. Will give this one a try and get back with results later.

    In the meantime: is there any way to change all of the frame's layer-effects at the same time?
    I tried creating this event, but with no luck:

    - When pressing F5
    + FRAME
    Change frame effect to "Display"

  3. #63
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For the past hours i've been looking at several different Inventory-example files, trying to find a fairly easy one to implement into my game.

    I've been searching alot here in the forums, following links to "The Daily Click" and Nivrams homepage. To see how those examples are built. Most of them use Arrays, strings etc and are pretty complicated in code.

    Then I tried the "Inventory Object" because the example-file made it look easy to implement. But I cant get it to sort the items I pick up.
    When my character overlaps an object the object is added to the inventory grid/list. But always with a random outcome. Sometimes the objects overlap eachother, sometimes the objects doesnt appear in the inventory at all etc.

    Is there any good explanation to how the Inventory Object works? Ive been looking at the help file, but not much luck there.
    Is the inventory object the easiest and best way to go for me? Im not at all familiar with fastloops, arrays etc..

  4. #64
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to fully use a xbox360 controller and it's two joysticks without the XNA-exporter that includes the Xbox360 Gamepad extension?

    Ive tried adding gamepad support to my game with the "Gamepad object", but I havent found a way to use the second joystick (the one to the right) on my 360-controller.
    Is this impossible without the XNA-exporter?

    I want to be able to move the character around with the left stick, and aim with the right stick..

  5. #65
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im trying to make an inventory where i can drag and drop each slot onto eachother in order to combine different items.

    Since there isn't a function for "When left mouse button is RELEASED (= do this)" this has proven pretty difficult to handle.

    Here's how i want it to work:

    - When i hold the mouse cursor over an item in the inventory while simoutaniously pressing down and holding the left mouse button, that specific item will follow the mouse-position. (Ive managed to get this to work properly)
    - Then i want to be able to drag over that item to another slot, RELEASING the left mouse button to combine it. (This is where my problem lies)

    Ive only managed to make the items combine as SOON as you're dragging one item over to the next item-slot. As soon as the mouse overlaps the other item-slot, the items combine without even releasing the left-mouse button.

    Any ideas?

    Drag n drop.jpg

  6. #66
    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)
    Make a "repeat while left mouse button is pressed" condition, then right-click it. There should be a "negate" option. That will make the condition trigger whenever the condition is true. Also, you could use the inventory object, which has support for dragging and dropping things into the inventory,

  7. #67
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You can use both joysticks on the xbox360 with the joypad object. The 2nd joystick uses the RawR and RawU (horizontal and vertical movement respectively) expressions. it ranges from 0-65535 with the exact neutral being
    32767. Simply manipulate the expressions to fit your needs. Keep in mind that the joystick is rarely at "pure neutral" so you will need to accommodate for it being slightly off pure neutral.

  8. #68
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To happygreenfrog:
    I've already tried the negate-option for the "repeat while left mouse button is pressed". Im trying to figure out how to make the items combine with eachother as soon as you release the left mouse button while the two items overlap eachother. It has proven more difficult than I originally thought. Will try some other things to see if it works.

    To ProdigyX:
    Sweet, ill give it a shot. Thanks!

  9. #69
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone know why the mouse-buttons doesn't always react to mouse-clicks?
    I have mapped the left-mouse button as the attackbutton (shooting, punching etc.). But the game doesn't register every mouseclick i make when trying to shoot fast (tapping the LMB quickly).
    I tried remapping the attackbutton to one of the keyboard-buttons, just to see if it worked better and it works every time i press down the key, no matter how fast i tap it.

    Why is it that MMF2 has trouble with mousebutton-inputs like this?

    I've tried this on several friend's computers aswell, and they all have the same problem.

    Is there a workaround for this?

  10. #70
    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)
    This is because such rapid clicks MMF2 thinks it is just one click.

    Don't allow mouse click if flag is on
    Set a flag on with the mouse click

    Negate mouse click
    set the flag off

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

Page 7 of 8 FirstFirst ... 5 6 7 8 LastLast

Similar Threads

  1. quiz random questions(without third party products)
    By johnnier in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th May 2013, 06:25 PM
  2. Some more random Klik questions (only 7 this time)
    By oldkliker in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th September 2011, 01:05 AM
  3. Game Still Seemingly Freezes at Random
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 1st June 2010, 04:57 AM
  4. Phizix Extension Questions -- Several and Random
    By Sedition in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 17th November 2009, 06:10 PM
  5. Making parts of a game random
    By Stephen38 in forum Multimedia Fusion 2 - Technical Support
    Replies: 20
    Last Post: 20th May 2008, 06:24 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
  •