Spawn - Create new Sprite

Discussion and feedback on Construct 2

Post » Mon Jul 23, 2012 9:04 pm

Why does the Spawn or Create Object (at runtime) does not allow to give a new name to the newly copied sprite?

how can I reference the newly copied sprite?
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Mon Jul 23, 2012 9:24 pm

I think you are confused between objects and instances. Currently, you cannot create a new object at runtime, but you can create a new instance of an existing object.

You can reference it by its UID or by some other condition - look into 'picking'.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Jul 23, 2012 10:12 pm

thanks a lot for info... yes i was looking more into copying a new object from a sprite object (not an instance)
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Mon Jul 23, 2012 10:13 pm

Yeah, you can't really do that at runtime.

I am interested in knowing why you would want to be able to do this, however...sqiddster2012-07-23 22:14:14
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Jul 24, 2012 7:39 am

I am doing a simple coloring book for my son using his pictures, and I am using the Sprite Effects plugin to Tint sprites. Unfortunately this plugin does not work on Chrome, so I was planning to make a copy of sprites, color them, and then delete them to make the Tint effect work, as it seems that it will take time until the plugin will be fixed/updated.
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Tue Jul 24, 2012 12:55 pm

Well, you might be happy to know that in r100, I think Scirra plans to add shaders, which will make toning sprites a breeze. It will definitely work in Chrome.

Great project idea, by the way!
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Jul 24, 2012 1:18 pm

Nice to know!
Hope someone will make a shader plugin to rgb colorize sprites
B
41
S
11
G
4
Posts: 428
Reputation: 7,356


Return to Construct 2 General

Who is online

Users browsing this forum: Aphrodite, blackant, Eisenhans, Prominent, shinichild and 10 guests