The Daily Click ::. Forums ::. Klik Coding Help ::. Multiple selection in tbs
 

Post Reply  Post Oekaki 
 

Posted By Message

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
6th March, 2007 at 07:43:44 -

Does anyone knows how to code a multiple selection with mouse.

I v made movement blocks with 60 different objects...will be more.
When clicked on a soldier all objects get around him..and then u can choose the ones that alterable values compares each block alt val.
And the movement for the individual unit is set quite nicely. depending on his movement alt val.

Also i use qualifiers for all my units, movement blocks, buildings and stuff.
i have a question.

How do i make a mouse does a rectangle selection? And what ifs? can i use to compare those selected units within( can it read each alt values of those group.soldiers or?). should i draw a rectangle or what.? while mouse key is pressed. i don't know how to do that.
Any suggerstions or help is appreciated.

 
Code me a sausage!

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
6th March, 2007 at 07:55:09 -

You can do it with the Active System Box object. I can make you an example CCA or MFA later, but I can't really be bothered right now.

 
n/a

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
6th March, 2007 at 09:07:36 -

Lol that's the spirit, axel! Yeah use the Active System Box... I'm gunna have to join axel's ETA queue though.

 
http://www.SilverNova.co.uk


Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
6th March, 2007 at 09:11:13 -

Thx...

Active box seems as a solution. After some thinking i v made selection box rather easily

By clicking mouse set active box postion relative to mouse xy
And for the box to draw a rectangle

set dimensions of active box
xmouse - xpostiton of active box
ymouse - yposition of active box


I figured out how to select multiple objects with it. thx again.
Active box is a charm.

Image Edited by the Author.

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click