User Tag List

Results 1 to 2 of 2

Thread: Troubles with programming behavior of multiple of the same objects.

  1. #1
    No Products Registered

    Join Date
    Apr 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Troubles with programming behavior of multiple of the same objects.

    I am programming a 2D mining game. Right now I'm working on the procedural generation. My plan with this was to have one object with many animations resprenting the different blocktypes (dirt, ore, stone) , and each block is assigned an animation through random chance (with slight tweakings).

    But this is about one of the blocktypes, the stone.

    So my idea was to have it so that when the stone is not touching anything, it moves down my "block position" + 1, and when it is touching something it's position is changed to "block position -1". This is the basis of the gravity behavior I have set for the bits of ore that drop from destroying an ore block.

    But when I program it. All stones go downwards regardless of whether or not it's touching something. And I'm pretty sure what is happening is that when even a single stone block is not touching another procedural block, it makes all stone blocks go downward.

    I've had this problem before. The "conditions of one 'object A' affecting the behavior of all 'object A's" or just clickteam fusion not really knowing how to handle multiple of the same objects in an environment when they rely on things like alterable values (one alterable value of "object A" causing a seperate "object A" to behave in an unwanted way". This seems like a roadblock for me with this program. So I'm either going to learn how to overcome this or drop the program for something else.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's a common problem, but can be fixed using On Each. I posted a fix to somebody else's similar problem here: http://community.clickteam.com/threads/97719-Issues-with-the-quot-overlap-quot-event
    Hope it helps!

Similar Threads

  1. Multiple Enemy AI behavior
    By XeinR in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th August 2015, 03:26 PM
  2. Multiple Enemy AI behavior
    By XeinR in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 3rd August 2015, 03:42 PM
  3. Inconsistent Behavior when scaling objects
    By killer1one in forum Android Export Module 2.5
    Replies: 2
    Last Post: 30th September 2014, 03:38 PM
  4. Need help programming events with objects in groups
    By Morthian in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd April 2013, 03:38 AM
  5. I am going full Behavior programming, any tips?
    By EdibleWare in forum Multimedia Fusion 2 - Technical Support
    Replies: 28
    Last Post: 6th December 2011, 09:59 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
  •