The Daily Click ::. Forums ::. Klik Coding Help ::. Events vs Behaviors
 

Post Reply  Post Oekaki 
 

Posted By Message

Banbeano



Registered
  04/03/2008
Points
  5
4th March, 2008 at 17:19:49 -

Forgive the noobness of the question. What is the fundamental difference between Events and Behaviors? They seem to be the same thing, but I find it hard to believe that Click Team would put in a redundant tool. Anyway, my other question is what do you guys (meaning more experienced clickers) use behaviors for?

 
n/a

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
4th March, 2008 at 17:32:35 -

I use behaviors on enemies and a few specific sprites so I can copy them to the relevant frames and have the coding stick with them.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
4th March, 2008 at 17:36:54 -

Personally, i never use them.

They're basically their own little event editor (seperate from the main one) inside an object.

 
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
4th March, 2008 at 18:45:38 -

We don't have them in TGF, and honestly have no idea how they fit into the architecture. Like are behavior events just added to the bottom of the event editor stack or what? Seems really odd

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
4th March, 2008 at 19:48:25 -

I dunno, I find them quite useful. Like I said they work wonders if you have lots of frames and just want to modify one (global) object. If you're running a game from 1 frame then they're pretty useless. Same for if the object isn't global. I think.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
4th March, 2008 at 20:04:45 -

lol, I always used to use them but then I was once told by some random that I shouldn't use them. They are kinda hidden away

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
4th March, 2008 at 21:00:15 -

I use them for specific things that do stuff mainly for that object and that object only. Say for example putting a bunch of variables to a character such as movement variables or visibility variables. Just don't rely on them to often, because it's not so much the performance of your game that will suffer, but the fact that if you get carried away, you'll most likely find yourself doing more searching then programing.

One major thing about behaviors that I found extremely helpful in terms of tediousness would be specifically with things such as sensors. With sensors, you frequently find yourself renaming sensors and doing everything like 4 to 8 times for each sensor. With a behavior, you only need to do it one time, and then you can copy and paste behaviors to other sensors. Because in behaviors, events that refer to a parent object, refer to object as "Self". This means that if you copy events from Left sensor and everything in those events are all Left sensor, over to right sensor. All the left sensors change to right sensor.
Hope this wasn't to confusing.

 
http://www.facebook.com/truediamondgame

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
4th March, 2008 at 22:39:42 -

Good:
Easy way to organize events
Good for multi frame applications (Just drag the object on the screen and He'll have all his events)

Bad:
No qualifiers allowed
I don't know if they happen before or after the frame events, or which objects events get to go first
Might be more difficult to make a custom pause screen

 
-

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
5th March, 2008 at 00:01:00 -

The order is Frame events -> Global Events -> Behaviors if I remember properly :\

 
Image
http://bfollington.tumblr.com

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
5th March, 2008 at 00:11:46 -

But what if you have multiple objects with behaviors, who's behaviors go first?

 
-

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
5th March, 2008 at 02:59:48 -

Probably the ones who have the highest z position (on top) knowing clickteam.

 
Image
http://bfollington.tumblr.com
   

Post Reply



 



Advertisement

Worth A Click