The Daily Click ::. Forums ::. Klik Coding Help ::. Object types/variation/what have you
 

Post Reply  Post Oekaki 
 

Posted By Message

Tokinsom



Registered
  22/11/2009
Points
  25
17th June, 2010 at 04:21:31 -

In Construct, you can place duplicates of an object on the frame and assign each one a different starting value, which, for example, could tell what "type" of object it is. In MMF, if you change one duplicate's starting value, it changes ALL of other duplicate's starting values, making this impossible..at least through the frame editor. With that said, how can you change one duplicates starting value without it affecting the others?


 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
17th June, 2010 at 11:32:47 -

I'm don't think you can, which is a major flaw that really should have been fixed by now.
The easiest option would be to create different "marker" objects, then at the start of the frame, replace them with the actual objects you want, and set the values accordingly.
Alternatively, you load all the values from a list (or array, or whatever) at the start of the frame (using spread values & fastloops).

 
n/a

aphant



Registered
  18/05/2008
Points
  1242
18th June, 2010 at 20:52:17 -

You could also make "token" objects that alter the variables. You might have a basic enemy with 5 health, but you want some to have 15 health instead. So, what you do is you make an object that increases an enemy's health by 10; At the start of the frame, add 10 health to every enemy that is overlapped by the +health token, and then destroy the token.

 
   

Post Reply



 



Advertisement

Worth A Click