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

Post Reply  Post Oekaki 
 

Posted By Message

alastair john jack

BANNED

Registered
  01/10/2004
Points
  294

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

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
  17/05/2002
Points
  7233
5th February, 2010 at 07:36:05 -

Press F8 and find out?

 
//

Muz



Registered
  14/02/2002
Points
  6499

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

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

BRING BACK MITCH

Registered
  07/07/2008
Points
  49564

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 FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
5th February, 2010 at 15:55:13 -

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.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

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

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