How do I destroy objects?

Get help using Construct 2

Post » Thu Aug 03, 2017 8:20 am

hi, in my app i use the plugin 3dstarfield shape.

in my game view from a spaceship cockpit, when i fire i would liek to destroy the meteorites in front of my target.
someoen iknwo how to achieve that?
here its an actual picture of what i have at the moment.
https://s2.postimg.org/daehyjg87/starship_firing_at_meteor02.jpg

Image
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Thu Aug 03, 2017 2:56 pm

can someone help to solve this?
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Thu Aug 03, 2017 3:06 pm

Are these meteors created by the plugin so it's specifically to do with the plugin? I would post on the plugin topic.
B
46
S
16
G
79
Posts: 2,170
Reputation: 46,857

Post » Thu Aug 03, 2017 3:27 pm

yes they are created by that plugin
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Thu Aug 31, 2017 4:50 pm

@imothep85
starfield use 1 sprite area to display all stars you can not destroy each stars with C2. You must code meteors with events.
starfield plugin behind + meteors front of this and cocpit front of meteors... each meteors are sprite ...
Let me help you please be patient ....
So here is the solution; insert 3dstarfield with normal stars ... then code meteors like this with C2 events...

Image

And Cocpit png always front of this....

regards
B
62
S
22
G
29
Posts: 822
Reputation: 22,332

Post » Thu Aug 31, 2017 4:57 pm

Gigatron is right Star in a background is only 1 sprite. Why not create Astroid and move it about with a bullet or another method. Now you are able to destroy or whatever you wish
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,763

Post » Thu Sep 07, 2017 2:48 pm

iuse 3d starfield for meteorites....
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Thu Sep 07, 2017 3:53 pm

Is this your meteorite that you want to destroy?
How did you do it with the 3d starfield plugin? I thought this plugin can only generate white dots (stars).

Image
Check out my awesome game Doptrix
B
17
S
9
G
30
Posts: 525
Reputation: 17,349

Post » Sat Sep 09, 2017 6:49 am

i use 2d starfield....for stars and on top of that i use 3d starfiels where you can add any png :D so i added a 3D meteorite picture
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Sat Sep 09, 2017 6:58 am

Then you should listen to Gigatron, the creator of these plugins :)
You can't destroy stars/meteorites generated by these plugins.
Instead you should create meteorites yourself using the method he provided.
Check out my awesome game Doptrix
B
17
S
9
G
30
Posts: 525
Reputation: 17,349


Return to How do I....?

Who is online

Users browsing this forum: 25games, jatin1726, kiki4construct and 31 guests