Simple way to reuse a series of actions on any sprite?

Discussion and feedback on Construct 2

Post » Tue Jul 21, 2015 11:51 pm

I'm looking for a simple way to create a series of moves or changes, and be able to apply that to any object down the road.

Imagine a button, and you want to make it fancy by having it slide onto screen, wiggle a bit by animating the width/height, then flash, then grow in size. But now, be able to take that list of moves and apply it to any other object quickly and cleanly. Kinda like a function, but with the ability to have things change over time like litetweens etc.

So that later you could simply say -> on touch - make touched object "jiggle appear"

I've looked at some of the plugins like rex's cmdQueue and tweenTasks, but it seems like these can only be applied to a specific object and that you'd have to set them up all over again to another object. (unless i've missed something).

Can anyone recommend how they'd setup a system like this?
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Wed Jul 22, 2015 12:32 am

Families.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Wed Jul 22, 2015 1:34 pm

Is it possible to combine 2 different types of objects into one family?
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Wed Jul 22, 2015 1:57 pm

No.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests