The Daily Click ::. Forums ::. Klik Coding Help ::. Question about the event system
 

Post Reply  Post Oekaki 
 

Posted By Message

alastair john jack

BANNED

Registered
  10/1/2004
Points
  317

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!VIP MemberMushroomI am an April Fool
5th February, 2010 at 6:02:31 AM -

When creating an object, do the actions after it affect only that particular instance? Or does it affect all other instances of that object?

If I create 2 instances of an object in 1 event, will the actions that follow the creation affect both instances or the one which was created last? Here's an image to illustrate my thought:
Image
Will both of these instances have the 'speed' and 'direction' actions applied to them? Or just the final one.


If the actions only follow the last created one, then I presume this would be the ideal process if I want both of the objects to be affected:
Image


------------------

I have posted this at Clickteam forums, but I am posting it here as well - in case I am to receive a response here first.
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=175632



Edited by alastair john jack

 
lol

nim



Registered
  5/17/2002
Points
  7046
5th February, 2010 at 7:36:05 AM -

Press F8 and find out?

 
//

Muz



Registered
  2/14/2002
Points
  6724

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
5th February, 2010 at 8:47:30 AM -

In my experience, it's only on the last one.

Yeah, you have to do it like in the second screenshot. Fastloop it if you're too lazy to add actions.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

-UrbanMonk-

Professor Spectrum

Registered
  7/7/2008
Points
  6121

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 Fool
5th February, 2010 at 3:55:13 PM -

If you execute a fastloop after trying to use spread value I find that the spread doesn't happen till after the loop.

It used to work, and broke after one of the updates, so I just split my create actions into multiple conditions.

 
http://www.soapcow.com <- Flash games, featuring MMF made games!
http://www.jsoftgames.com <- Old blog I don't keep up anymore

AndyUK

Mascot Maniac

Registered
  8/1/2002
Points
  14165

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
5th February, 2010 at 10:06:11 PM -

I would always choose your second method. However sometimes copy/pasting those events for another object makes it stop working, only for the second object. I often have to rewrite the events for it to work for the second object.
Of course this could just be something Ive done wrong somewhere along the lines but it still happens really frequently.

 
.
   

Post Reply



 



Advertisement

Worth A Click