The Daily Click ::. Forums ::. Klik Coding Help ::. MMF2 RTS Units / individual selection
 

Post Reply  Post Oekaki 
 

Posted By Message

Codemonster

Administrator
Klik & Play Expert

Registered
  03/08/2008
Points
  133

I am an April Fool
1st November, 2008 at 16:24:30 -

I already know how I would in blitz basic, but in MMF2 and all previous click products i've struggled getting this to work without bugs:

how to I select specific active objects in conditions to do certain things.

basically i have a game where theres many units, they can be selected/unselected using flags and they all have id for an alterable value that is always a different number from object to object

every time i try to make conditions to handle these objects, it seems multiple instances other than the one im trying to manipulate are being modified also

 
--
Jesse J

Colin Capurso



Registered
  14/07/2004
Points
  2
13th November, 2008 at 00:00:59 -

Seemed to work out fine for me, i think you've gotta make sure you've added an event that's unique to that one unit, so for me the unique event is "cursor overlapping unit"

-= Event =-
"Cursor" Overlapping "Unit"
Mouse left clicks on "Unit"

-= Result =-
Set Unit flag/alterable value



 
n/a

Kasz



Registered
  31/05/2004
Points
  9
13th November, 2008 at 00:19:57 -

that would run into the problem when it is that the cursor is over 2 objects. Add pick one of after mouse over condition.

 
n/a

Colin Capurso



Registered
  14/07/2004
Points
  2
13th November, 2008 at 02:14:15 -

Yeh true, how bout this.
It works, seems a bit overdone though.
fyi: Alterable Value A: 0 is not selected, 1 is selected

-= Event =-
+Mouse pointer is over "Unit"
+User clicks with left button on "Unit"
+Alterable Value A <> 1
+Pick one of "Unit" at random

-= Then =-
Set Unit Alterable Value A to 1

 
n/a

Codemonster

Administrator
Klik & Play Expert

Registered
  03/08/2008
Points
  133

I am an April Fool
16th November, 2008 at 18:32:42 -

Thanks guys,

I've tried these, the problem seems embedded deeper into the engine.

And just for a one line rant... why the $#%^ didn't clickteam provide a solution for this with MMF2's release!?!?

 
--
Jesse J

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
19th November, 2008 at 00:05:43 -

A solution for what?

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Codemonster

Administrator
Klik & Play Expert

Registered
  03/08/2008
Points
  133

I am an April Fool
19th November, 2008 at 05:31:12 -

easily picking whole groups of objects with certain properties, easily distinguishing between objects. they just havent yet made extremely complex things possible without alot of hard effort

 
--
Jesse J

-Adam McMillan-

Mr Incredibubble

Registered
  15/09/2008
Points
  198

Wii Owner
19th November, 2008 at 06:46:03 -

That's what qualifiers are for

Image Edited by the Author.

 
Image
   

Post Reply



 



Advertisement

Worth A Click