Jump to content


Photo

Explosives


  • Please log in to reply
15 replies to this topic

#1 ThatOneGuyX

ThatOneGuyX

    GMC Member

  • New Member
  • 66 posts
  • Version:GM8

Posted 05 April 2012 - 09:48 AM

I am trying to make a game were you click on an object and it blows up and destroys the other objects around it plus shoots out little white objects to make
it look like smoke please help
  • 0

#2 Robert3DG+

Robert3DG+

    VR Games

  • GMC Member
  • 1843 posts
  • Version:GM:Studio

Posted 05 April 2012 - 10:13 AM

What have you tried so far?
  • 2

#3 ramses12

ramses12

    6

  • GMC Member
  • 5769 posts
  • Version:GM8.1

Posted 05 April 2012 - 11:51 AM

Posted Image
Do some
var n;
while(n=collision_circle(blahblah))with(n)instance_destroy();
  • 0

#4 ThatOneGuyX

ThatOneGuyX

    GMC Member

  • New Member
  • 66 posts
  • Version:GM8

Posted 07 April 2012 - 10:13 AM

Posted Image
Do some
var n;
while(n=collision_circle(blahblah))with(n)instance_destroy();

I still don't understand
  • 0

#5 Popcorn123

Popcorn123

    JNC Games Creator

  • GMC Member
  • 371 posts
  • Version:GM8

Posted 07 April 2012 - 01:05 PM

What have you tried so far?
  • 0

#6 ThatOneGuyX

ThatOneGuyX

    GMC Member

  • New Member
  • 66 posts
  • Version:GM8

Posted 08 April 2012 - 01:25 AM

What have you tried so far?

I have made the objects The object that blows up when you click it and the object smoke that fly's around when you
blow it up to make it look realistic but that's it
  • 0

#7 greep

greep

    Menaces with Spikes

  • GMC Member
  • 2295 posts
  • Version:GM7

Posted 08 April 2012 - 01:27 AM

We'res asking for cold hard code. not explanations heh. And maybe a clearer problem or pictures.
  • 0

#8 ThatOneGuyX

ThatOneGuyX

    GMC Member

  • New Member
  • 66 posts
  • Version:GM8

Posted 08 April 2012 - 01:33 AM

We'res asking for cold hard code. not explanations heh. And maybe a clearer problem or pictures.

Well im just asking for help on how to do this When you click the Object 1 it blows up and removes the objects 2 around it
i know how to make smoke come of it but i don't know how to remove objects around where ever the object 1 is sitting
  • 0

#9 greep

greep

    Menaces with Spikes

  • GMC Member
  • 2295 posts
  • Version:GM7

Posted 08 April 2012 - 01:36 AM

Well one way to do it is to just make a circlular invisible object appear for a few frames at the explosion, and make a collision eveent with everything you want to be destroyed get destroyed when it collides with it.
  • 1

#10 ThatOneGuyX

ThatOneGuyX

    GMC Member

  • New Member
  • 66 posts
  • Version:GM8

Posted 08 April 2012 - 02:07 AM

Well one way to do it is to just make a circlular invisible object appear for a few frames at the explosion, and make a collision eveent with everything you want to be destroyed get destroyed when it collides with it.

No idea how to do that
  • 0

#11 greep

greep

    Menaces with Spikes

  • GMC Member
  • 2295 posts
  • Version:GM7

Posted 08 April 2012 - 02:09 AM

Well which part don't you know? There's a few simple things in that:

A)Create an object at a position
B) Make it invisible
C)Collision events with an object
D) destroying an object
E) Creating an object that lasts only a few frames

Edited by greep, 08 April 2012 - 02:09 AM.

  • 1

#12 ThatOneGuyX

ThatOneGuyX

    GMC Member

  • New Member
  • 66 posts
  • Version:GM8

Posted 08 April 2012 - 02:14 AM

Well which part don't you know? There's a few simple things in that:

A)Create an object at a position
B) Make it invisible
C)Collision events with an object
D) destroying an object
E) Creating an object that lasts only a few frames

I don't understand the collision part
  • 0

#13 greep

greep

    Menaces with Spikes

  • GMC Member
  • 2295 posts
  • Version:GM7

Posted 08 April 2012 - 02:17 AM

Okay so make the circular object called something like explosionRadius

Take everything you want to be destroyed, like enemies, walls etc. In those objects, go to events, and make a collision event. with the drop down menu, choose explosionRadius. In action, make it destroy itself

Edited by greep, 08 April 2012 - 02:17 AM.

  • 1

#14 ThatOneGuyX

ThatOneGuyX

    GMC Member

  • New Member
  • 66 posts
  • Version:GM8

Posted 08 April 2012 - 02:23 AM

Okay so make the circular object called something like explosionRadius

Take everything you want to be destroyed, like enemies, walls etc. In those objects, go to events, and make a collision event. with the drop down menu, choose explosionRadius. In action, make it destroy itself

Ohhhhh i get it
  • 0

#15 ThatOneGuyX

ThatOneGuyX

    GMC Member

  • New Member
  • 66 posts
  • Version:GM8

Posted 08 April 2012 - 03:04 AM

But i have 1 prob how do you make it the Collision object removes its self after
  • 0

#16 greep

greep

    Menaces with Spikes

  • GMC Member
  • 2295 posts
  • Version:GM7

Posted 08 April 2012 - 03:33 AM

You just give it a timer and destroy it after the timer reaches a certain point, probably 5 or so frames. So

Create:

Timer = 0

Step:

Timer += 1

if (Timer = 5)
{
instance_destroy()
}
  • 2




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users