how destroy a image or a sprite?

For questions about using Classic.

Post » Mon Feb 08, 2010 3:38 pm

how destroy a image or a sprite? :?:
B
2
G
2
Posts: 12
Reputation: 674

Post » Mon Feb 08, 2010 3:48 pm

Use Destroy action under misc.
B
2
S
1
G
4
Posts: 71
Reputation: 1,342

Post » Mon Feb 08, 2010 3:52 pm

the action is the collision of sprite (a rocket) on other sprite (a destroyed platform)
B
2
G
2
Posts: 12
Reputation: 674

Post » Mon Feb 08, 2010 3:55 pm

Have you checked the Ghost Shooter tutorial out?
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Mon Feb 08, 2010 3:56 pm

no, why?
B
2
G
2
Posts: 12
Reputation: 674

Post » Mon Feb 08, 2010 3:58 pm

i would like the sprite don't ANY destroy, but per pixel!!!
B
2
G
2
Posts: 12
Reputation: 674

Post » Mon Feb 08, 2010 5:01 pm

Do you mean that you want each pixel to be taken away when the object is hit cause that is diffrent then destroying the object. You should go though the ghost shooter tutorial to get an idea of how construct works....
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Mon Feb 08, 2010 6:41 pm

[quote="Mipey":2qqx3hia]Have you checked the Ghost Shooter tutorial out?[/quote:2qqx3hia]
[quote="tancfire":2qqx3hia]no, why?[/quote:2qqx3hia]

Because you should. That's what it's there for, to teach people basic stuff like this.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Feb 08, 2010 7:17 pm

I believe he meant destroying a part of the sprite, that is pixels, as in destroying a chunk of the boss ship with your attacks. I already provided an answer in the PM, however let me repeat it here.

You can use a Canvas to copy the sprite image, paste a mask of the part onto it, then erase that part from the image and finally copy the image back to sprite. Don't forget to update the collision mask.

However, this is an advanced game development topic and as such I wouldn't recommend it to beginners. You can try, however I won't offer much more help beyond this advice.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest