Wrapper Class in C2 ?

Get help using Construct 2

Post » Sat Jun 30, 2012 10:51 pm

Is there anything called WRAPPER class in Construct2 ???
B
6
Posts: 30
Reputation: 585

Post » Mon Jul 02, 2012 11:33 pm

There is nothing called "WRAPPER" in Construct2 as far as I know. What would you do with it if it did exist?
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757

Post » Wed Jul 11, 2012 4:59 am

Well , we can give common attributes to objects belonging to different classes. example ... wooden plank and tree are totally different objects belonging to different classes in the game but we want one feature in the game ...say both tree and wooden plank to become translucent when the player gets some power in the game...in that case instead of writing separate code for TREE for TRANSLUCENCY and separate for wooden plank is tedious ...so we can directly write like whichever objects belong to the WRAPPER class becomes translucent when the player gets this power... hope i was clear in conveying what I meant to ask
B
6
Posts: 30
Reputation: 585

Post » Wed Jul 11, 2012 6:47 am

Families are used for that, but you can't use them in the free version of c2.
http://www.scirra.com/manual/142/families

Using different animations of one sprite object is another way to reduce event counts.
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757


Return to How do I....?

Who is online

Users browsing this forum: a1oleg, DemantDigitalArt, GSquadron, jeffige, MarkThomas, paala and 23 guests