0 Favourites

How do I make an exact copy of an object at runtime?

  • Hi, all. I'd like to make an exact copy of an object at runtime, including the FX properties, for example Hue and Brightness. Is this possible? (Is the only way saving all the FX properties of the original object in Instance variables and copying the rest of the settings one by one?)

    And for someone who might say - why would you need that, etc - I'm building a stuff generator in C2 - a quick way to make all sorts of things (perhaps placeholder, perhaps not). Here are some examples:

    Let's build a plane!

    Let' s build a... crappy looking vehicle!

    As you can see in many cases a quick copy would be neat. It would also enable a mirror feature which would be even neater.

    While we are at it - how would one save half of the canvas out as a transparent png?

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
167 14,485
DMT2005's avatar
DMT2005
Unread hot topic
134 20,400
KTML5's avatar
KTML5
Unread sticky
1 Favourites
C2 Games made with CocoonIO
136 89,809
minhcuong's avatar
minhcuong