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
44
S
18
G
7
Posts: 1,817
Reputation: 10,380

Post » Thu Aug 03, 2017 2:56 pm

can someone help to solve this?
B
44
S
18
G
7
Posts: 1,817
Reputation: 10,380

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
48
S
19
G
87
Posts: 2,317
Reputation: 51,518

Post » Thu Aug 03, 2017 3:27 pm

yes they are created by that plugin
B
44
S
18
G
7
Posts: 1,817
Reputation: 10,380

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
71
S
25
G
29
Posts: 843
Reputation: 22,929

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
262
S
49
G
15
Posts: 2,009
Reputation: 42,233

Post » Thu Sep 07, 2017 2:48 pm

iuse 3d starfield for meteorites....
B
44
S
18
G
7
Posts: 1,817
Reputation: 10,380

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
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
127
Posts: 1,767
Reputation: 67,855

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
44
S
18
G
7
Posts: 1,817
Reputation: 10,380

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.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
127
Posts: 1,767
Reputation: 67,855


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests