Author Topic: shooting objects: crates that break down until broken throug  (Read 5712 times)

iluvcat

  • Visitor
  • *
  • Posts: 6
    • Yahoo Instant Messenger - iluvcat69
    • View Profile
    • http://www.mauinteractive.com
    • Email
:x
AAAARGH!
Is there a way to setup crates that can be shot down without creating a path for each one. I initially setup 25 different path spots but was given an error and failure on the map.

I have a few places that I wanted to setup walls, pyramids, etc of crates.
My tiles are 64x64.

The breakdown is:

1st shot and/or drive into crate to crack it
2nd shot and/or drive into crate to break it down totally
then a peace of the crate is left to represent what is left.

Any suggestions? HELP!!

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
shooting objects: crates that break down until broken throug
« Reply #1 on: 2005-03-18, 06:36:51 AM »
I think the only way to do this without making each crate a sprite is by scripting the check to see if the crates have been hit.  Running into the crates with the player is easy to do without scripting and paths, but checking if they've been shot would be more complicated.  I don't know why you would have gotten an error adding a bunch of paths, though.  If you want to try to figure that one out, I could probably help.

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
shooting objects: crates that break down until broken throug
« Reply #2 on: 2005-03-18, 09:34:57 AM »
You could create a different sprite that looks similar (or the same) in the same place after the first hit and when that sprite gets hit by the player sprite, switch it to the broken sprite.

--Edit--

If you can't figure out how to do that, just ask, and I'll post a more detailed solution.
Edward Dassmesser

Gohst

  • Regular
  • **
  • Posts: 31
    • View Profile
    • http://mybrain.ej.am
    • Email
shooting objects: crates that break down until broken throug
« Reply #3 on: 2005-03-29, 03:20:08 AM »
I'd say... when bullet hits crate, switch crate to craked crate1

when bullet hits cracked crate1 switch crate to cracked crate2

when bullet hits cracked crate 2, delete crate

thats about as easy as i think it should be

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
shooting objects: crates that break down until broken throug
« Reply #4 on: 2005-03-29, 05:42:40 PM »
Quote
I'd say... when bullet hits crate, switch crate to craked crate1

when bullet hits cracked crate1 switch crate to cracked crate2

when bullet hits cracked crate 2, delete crate

thats about as easy as i think it should be


Which is.....exactly what I already said.
Edward Dassmesser

Gohst

  • Regular
  • **
  • Posts: 31
    • View Profile
    • http://mybrain.ej.am
    • Email
shooting objects: crates that break down until broken throug
« Reply #5 on: 2005-03-31, 12:44:32 AM »
It was in a more, "this is how to do it" sort of way... but hey, I don't want to tread on your toes here. We're just helping out, each and every one of us.