broke part from object

Get help using Construct 2

Post » Fri Jun 01, 2012 10:08 pm

is there a way to break some part from object when its die ,i have tried particle but its just one picture it can't be part from the object , im asking when i destroy the enemy for example it cuts off to 5-8 parts and these parts keep getting small until they destroy , also when they cut off they do like a circle (same way of firework). you can edit this capx if it can be : http://dl.dropbox.com/u/67034121/scirra%20construct2/destroy.capx





thanks for reading ^^
by salem
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sat Jun 02, 2012 1:38 am

There's no easy way to do this with C2. What you should probably do is cut it up in photoshop, then save each image as a frame in an explosion animation at speed zero.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Jun 02, 2012 2:47 am

@sqiddster , i was thinking of this but i found the problem is how can i make them move like a firework from center of circle to outside or i also do that with flash???
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sat Jun 02, 2012 3:09 am

There are a few ways to do that...
You can use physics...
You can use custom movement and play with the vectors. Simulate gravity and apply a random X and Y vector on creation.

Hope that makes sense to you!
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Jun 02, 2012 3:22 am

@sqiddster , seems doing it with flash is much easier :P
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sat Jun 02, 2012 3:32 am

Sure, but that will increase your download size! Plus your explosion will be exactly the same each time.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Jun 02, 2012 3:51 am

@sqiddster , i don't know but the thing i want to do is it in 1 object so its not that much size , also i can put fade like in explosions on other games ill try it tomorrow i need to sleep its almost 6am z_z
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Post » Sat Jun 02, 2012 8:28 am

What about creating the whole object with little ones pinned together ? Explosion is made by destroying pin and applying force to the pieces from a point situating in the middle of the cluster
B
21
S
9
G
4
Posts: 197
Reputation: 4,105

Post » Sat Jun 02, 2012 12:13 pm

[QUOTE=zsangerous] is there a way to break some part from object when its die ,i have tried particle but its just one picture it can't be part from the object , im asking when i destroy the enemy for example it cuts off to 5-8 parts and these parts keep getting small until they destroy , also when they cut off they do like a circle (same way of firework). you can edit this capx if it can be : http://dl.dropbox.com/u/67034121/scirra%20construct2/destroy.capx


thanks for reading ^^
by salem [/QUOTE]



You could use particles ?

View example

Capx

Change some of the particle's settings to suit?

Hope this helps.
B
19
S
6
G
7
Posts: 1,205
Reputation: 7,298

Post » Sat Jun 02, 2012 1:11 pm

@chrisbrobs i really liked your work ^^ i edited it alittle but really good idea lol :P i know that wasn't what i was looking for but similar.
B
48
S
15
G
6
Posts: 795
Reputation: 12,035

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 0 guests