Difference between create object and spawn?

Discussion and feedback on Construct 2

Post » Mon Oct 22, 2012 8:51 pm

Is there a difference between the create object action and the spawn action?

B
54
S
22
G
8
Posts: 851
Reputation: 10,493

Post » Mon Oct 22, 2012 9:10 pm

Spawn object creates a new object at the same position and with the same angle as the old object.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,070

Post » Mon Oct 22, 2012 11:37 pm

'Spawn' can create multiple instances if multiple instances of the object the action is used on met the event's conditions; 'Create' only ever creates one instance.
Scirra Founder
B
363
S
216
G
75
Posts: 23,122
Reputation: 180,543

Post » Sat Oct 04, 2014 1:51 am

One thing for sure, I have a sprite with more frames, if I create a new sprite, and change the frame, the new sprite has now a different frame to the last sprite,if I use spawn, and change the frame of the new sprite,also the old sprite changes its frame ...
So the System is creating an instance of type Sprite , while the Sprite itself is spawning another one ...
B
3
Posts: 1
Reputation: 177


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests