Clickteam Fusion 2.5

Clickteam Fusion 2.5

Event "collision between" and then bounce gives odd results when adding a second condition
Hi everyone,

I want that two objects with the same qualifier bounce when they collide and this works (collision between group A and group A). But if I add another condition to the collision which asks if the individual of group a has a flag turned on, then objects of group A move oddly (bounce?) even if they are not colliding (maybe because others do).

Isn't it possible to limit the collision properly between two groups (or within one group) to only certain individuals (with a flag on for example)?
< >
15 yorumdan 1 ile 15 arası gösteriliyor
thank you, but it doesn't help, as my problem doesn't concern hot spots, but additional conditions in a collision event.
could you give us a copy of your .mfa (bare bone version) replicating the issue?
I found a solution for my problem. I didn't really understand how the collision event works, but this is what I think now:

"collision between (I)Group A and (II) GroupA" means that only object (I)Group A is selected when i do an action with Group A, so only one object bounces. But if I add a condition, every object of (II)Group A is selected that fulfills the condition when I do an action with Group A, so in my case more than one object bounced.

I found a workaround: I stored the fixed value of the collision object (I)Group A in a global value and used a fast loop that gets the individual of Group A that has the same fixed value and also checks if a flag (for collision) is turned on, so that I can let only that individual bounce. But after some collisions and bounces, sometimes the objects are overlapping... but thats okay in my case.
İlk olarak Black'Tea tarafından gönderildi:
But after some collisions and bounces, sometimes the objects are overlapping... but thats okay in my case.

Try Stop then Bounce (same event line, but stop first) <- This is only if your objects are "breaking" the collision wall... this is not if the objects are spawned on top of each other.

Edit: Went through this issue on this discussion:
http://steamcommunity.com/app/248170/discussions/0/350544272220820328/
En son Squatter tarafından düzenlendi; 18 Ara 2016 @ 7:29
yeah, I think this might be an improvement, but it didn't fix that problem.
I guess it has something to do with my solution with the fast loop.

do you know another way to check if two collision partners have a flag turned on, and if so, let them bounce? (if i just add a condition, a lot of other objects of that group bounce as well)

also: is there a "good" or "normal" way to start immediately another event by doing an action?
example for this: event is executed -> action: start event x ; event x starts immediately

edit: I struggle with every collision event which uses additional conditions. Does anyone know exactly how conditions affect collision events?
En son Black'Tea tarafından düzenlendi; 18 Ara 2016 @ 15:34
I think you need to understand the concept of Object Scoping in Fusion 2.5:

http://www.xable.us/object-scoping.php

This should help with instances and what will bounce

Also, I can easily detect your problem if you give me a bare bone .mfa to work with (it is just easier to understand the issue)

I also avoid fast loops, I try to use for each loop instead which helps with instances.

This document goes over the differences of loops:

http://download.clickteam.com/tutorials/en/fastloop-foreach.pdf
I agree that I have to understand scoping better. I have already read that pdf though, but I still not get it. If i try to scope for 2 different object groups in one event, it just seems to ignore what I do and selects every instance of the second object group instead. Edit: this was just because I changed in the action part a value that was used in the condition in the same event. I did another action in that event and then suddenly all objects were selected.

I'll think about how to create a bare bone version and where to upload it tomorrow. Thanks for you support.

Edit: okay, actually I am not sure why a bare bone version is needed. this is what I do:

I use some physic objects (balls) which have the qualifier 'Player'. Some have Alterable Value G = 0, some have G = 1.

only one event:
(green) collision between Group.Player and Group.Player
+ Alterable Value G of Group.Player = 0
Action (Group Player): Stop, then Bounce

Somehow, sometimes (or even all the time) all individuals of Group.Player bounce when two collide, not just the colling ones. If I just delete the condition (Alt. G = 0), collision and bouncing works fine, but this is not what I want.
En son Black'Tea tarafından düzenlendi; 18 Ara 2016 @ 17:24
I am not sure what you are trying to do but I made an example with some different ideas

https://www.dropbox.com/s/tkc85uiecfuvss4/Ball%20Bounce%20Example.mfa?dl=0

Edit: some more articles I know of

Handling Duplicates:
http://www.create-games.com/article.asp?id=1975

Automatic Pairing:
http://community.clickteam.com/threads/63801-Automatic-pairing

Edit2: This is not in my example but I forgot about it and saw it in the article

+ Always
-> Ball: Set "Colliding" to 0

+ "Ball" collides with "Ball"
-> Ball: Spread value 1 in "Colliding"

Now, the two balls which are colliding will have "Colliding" values of 1 and 2, while all other instances will have a value of 0.

CAREFUL, once the runtime loops, all balls will be set to 0, so you need to handle the "Colliding" values after they are spread, but then the info will be lost on the runtime loop. EDIT 3: Oops, I had to read the runtime loop a bit again, these "Colliding" values should be handled before the Always condition, because of the way the runtime loop is handled.

EDIT 4: Updated example:
https://www.dropbox.com/s/maw3lrjrhlithh0/Ball%20Bounce%20Example2.mfa?dl=0
En son Squatter tarafından düzenlendi; 18 Ara 2016 @ 18:27
okay, I finally traked the issue down, thanks to your help! But I currently have no solution.

I changed your example mfa and it worked correctly. In my game it doesnt work, because the objects in my qualifier are cloned, not duplicated! If you have different objects in one qualifier and you add a condition to the collision, suddenly all individuals are scoped! Don't know why. Actually, that looks like a bug to me?

Edit: barebone version
Edit: changed link
https://dl.dropboxusercontent.com/u/13593202/barebonenew.mfa
En son Black'Tea tarafından düzenlendi; 19 Ara 2016 @ 10:05
İlk olarak Black'Tea tarafından gönderildi:
If you have different objects in one qualifier and you add a condition to the collision, suddenly all individuals are scoped!

You should check out this workshop item I made it gives you the main concepts and all the different ways to do the same thing. Also in this example you can see how I use 1 Object with 10 different frames to give the appearence of 10 different objects.

http://steamcommunity.com/sharedfiles/filedetails/?id=794973882

I will check out your file, and see what I can do with the qualifier and different clones (not duplicates)
İlk olarak Black'Tea tarafından gönderildi:
http://www.megafileupload.com/87rm/barebonenew.mfa

Do you have a better website where I can download this?

Sorry but this website is pure junk and full of all sorts of nasty things.

^^^ WARNING TO EVERYONE ELSE ^^^

Edit: I used an old computer of mine to try and download it, I was unable to retrieve the file. Just ran into tons of fake ads trying to get you to download other things. (fake Microsoft Virus ... etc.)
En son Squatter tarafından düzenlendi; 19 Ara 2016 @ 7:48
Yeah, 2 or 3 popups come up, but I didnt had to register.
However, here a new link (after I dug out my old account):
https://dl.dropboxusercontent.com/u/13593202/barebonenew.mfa

edit: any ideas?
En son Black'Tea tarafından düzenlendi; 20 Ara 2016 @ 15:16
Does someone have an idea? Is this "normal" or a bug?
İlk olarak Black'Tea tarafından gönderildi:
Does someone have an idea? Is this "normal" or a bug?

sorry got side tracked... I will look at it later when I can
< >
15 yorumdan 1 ile 15 arası gösteriliyor
Sayfa başına: 1530 50

Gönderilme Tarihi: 16 Ara 2016 @ 15:58
İleti: 15