The Daily Click ::. Forums ::. Klik Coding Help ::. Assign Qualifier on the fly...
 

Post Reply  Post Oekaki 
 

Posted By Message

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
11th August, 2015 at 11/08/2015 09:50:09 -

Hi All,

my current project has multiple fighters in it, and players can pick the same fighter, and GetRGB allowed me to re-shade one of
the player to make sure there is a difference, Im having trouble with some actions,

I think its because Im using groups to control the active objects, so group1 is player 1 group2 is player 2,,

to that end Ive had to make active objects and add the qualifiers for grp 1 and then make a copy and assign grp2,

is there a way I can assign the group at the start of the frame, because Ive doubled up on the active objext in the game so far.

Kai.

 
----------------------
Time for a Sexy Party!
----------------------

Dr James 2



Registered
  17/02/2015 13:10:14
Points
  64
11th August, 2015 at 11/08/2015 18:42:53 -

Just thinking out loud here... it might be possible if you run a loop for every active object, you could store a faux qualifier as a value. And then on that loop, and if its fake-qualifier ID matches a certain value then do an action!

But AFAIK you can't change qualifiers (as we know them) on the fly.

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
11th August, 2015 at 11/08/2015 19:29:44 -

Yes exactly as James said. The only way to do what you want is to use Alterable Variables.

Have a value named "Group ID" or something and use that.

 
n/a

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
12th August, 2015 at 12/08/2015 09:07:16 -

oh bugger..
I was afraid of that,
to do that now, will require extensive re-coding, so I think this time i will continue to suffer with double active objects,

on the good side of this ,they only exist in one frame, and Ive made them global so they can be called into action in any other frame..

Thanks guys.

 
----------------------
Time for a Sexy Party!
----------------------

Pan-tosser



Registered
  24/10/2008
Points
  520

Has Donated, Thank You!
13th August, 2015 at 13/08/2015 00:44:25 -

I don't mean to be rude. But what is the deal with people wanting to do that.

The whole point of groups is to help sort out things created on the fly. Why does ever one want another layer of dynamic code, that they would have to track and sort out.

Seems like a complicated mess to me. Just saying.

 
https://www.facebook.com/nathon.brown.7

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
14th August, 2015 at 14/08/2015 18:28:26 -

What are you referring to pan?

A dynamic system using IDs is the only way to accomplish some things with Fusion that's why.
I'm sure most of us try to avoid it when possible though.

 
n/a

Pan-tosser



Registered
  24/10/2008
Points
  520

Has Donated, Thank You!
14th August, 2015 at 14/08/2015 19:09:17 -

Every time i look at somebodies click code their is a lot of redundant code that tracks the same object. So many haven't learned to pull the fixed value of a object.

It's all good though. Sometimes it's not possible to make the code work with the fixed. Don't get wrong. I'm all about some of the vary creative methods click codes have come up with. But i do trier of seeing code that tries to take recursion to the 10th level.

 
https://www.facebook.com/nathon.brown.7

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
14th August, 2015 at 14/08/2015 22:31:46 -

How often do you look at other's code?
I didn't know a lot of people posted their code.

A lot of times the IDs that are assigned have a meaning (aka group) so fixed value wouldn't work.

 
n/a

Pan-tosser



Registered
  24/10/2008
Points
  520

Has Donated, Thank You!
16th August, 2015 at 16/08/2015 03:14:30 -

a array storing a list of fixed values is a method to bind objects. So is a qualifier.

An array can't be changed dynamically, it's memory size is always the same. if it wasn't that way it be a link list.


I in no way would like to see qualifiers work with link list or any other type of recycled data. For me that would just completely make media fusion suck.

 
https://www.facebook.com/nathon.brown.7
   

Post Reply



 



Advertisement

Worth A Click