The Daily Click ::. Forums ::. Klik Coding Help ::. changing qualifiers at runtime??
 

Post Reply  Post Oekaki 
 

Posted By Message

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
25th May, 2008 at 08:12:39 -

Is this possible?? For instance you have a character select screen and then this character is loaded at runtim. the problem is having to code your movement for EVERY possible player. can you not just add/remove them from qualifier groups at runtime??

 
n/a

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
25th May, 2008 at 09:00:25 -

No, but there is a simple workaround.

Just choose an alterable value which isn't used for anything else and set that to 1 when the object gets the qualifier. An instant way to identify the object! Alternatively, and i haven't tried this, but you could list all the objects fixed values in an array and just scan through and compare that. That sounds like a good option.

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
25th May, 2008 at 09:14:45 -

i was hoping to create my movements and assign them to a set qualifier and then just add the chosen charcter to that qualifier etc... I don't think this is possible with values is it?

 
n/a

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
25th May, 2008 at 09:34:31 -

Well all a qualifier does is identify objects in one 'class'. If you give all the objects an alterable value of 1, this could be the 'class'. Set it to 0 and they are no longer in the 'class'. I say class, cos i don't really know what the right term should be.

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
25th May, 2008 at 12:07:48 -

This wouldn't work for what i am trying to achieve.... If i create an object in the frame editor and add it into qualifier group Player i can then assign actions direct to the qualifier in the event editor. I want to use this feature to create my engine in the event editor then at Runtime perform the following actions:

Start of Frame:

Create "Chosen Player" at 0,0 "Base Object"
Add "Chosen Player" into Group.Player
Destroy "Base Object"

This would then give "Chosen Player" the same events and actions as Group.Player. Using Values would not provide this feature hence the reason i need to use qualifiers. If it can't be done i will just have to hard code each individual characters movements into the frames

 
n/a

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
25th May, 2008 at 12:21:37 -

I fail to understand why you can't use alterable values for this it works perfectly in my head.

You just need to give them ALL the qualifier, then run a loop and check for the ones that have their value set to 1.

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
25th May, 2008 at 13:34:46 -

i can't work out how to do it using values. maybe its just the way i think... could you post an example?

 
n/a

aphant



Registered
  18/05/2008
Points
  1242
25th May, 2008 at 15:06:07 -

I imagine it would be something like:

Start of Frame:
Create "Chosen Player" at 0,0 "Base Object"
"Chosen Player": Set AltValue1 to 1
Destroy "Base Object"

You wouldn't have to necessarily recode everything for each character. You could keep common functions (running/jumping/what have you) in the basic group.Player event group. Then, for each different character just add their specific code to their own event group and activate them at runtime.

 

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
25th May, 2008 at 15:52:35 -

Put them all on the screen. Program them/their group. At the start of the frame, delete the ones not selected. Voila.

 

  		
  		

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
25th May, 2008 at 17:56:22 -

is that not a bit memory intensive?? i would have to do this twice per frame though you see as there are 2 characters on screen at any one time. the first being player controlled the second being CPU controlled so this would take some time me thinks. i suppose i could code it all into the behaviours of each one and duplicate them so that there are 2 of each character with one of them being player controlled and the other being CPU. again this woud be memory intensive though.

I think having the option to dynamically change qualifiers at runtime would enable this to take place without ipacting severely on memory usage. i have requested this on the CT forums.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
25th May, 2008 at 17:56:41 -

double post. TDC kicked me off during the post!

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click