Acies
Posting Freak
Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation:
73
|
RE: Throw an exploding object?
(03-18-2012, 11:47 AM)Apjjm Wrote: (03-18-2012, 06:31 AM)Damascus Wrote: I studied the section you were talking about, and saw that there are options for creating particle effects, sounds, and thrown objects when something hits hard enough. I probably won't be able to deal damage with it, but can probably achieve the explosion effect.
However, after thinking hard about it, I think it might make the game far too frustrating if the player throws it against the wrong object and loses the item, no longer able to advance in the game. But then, if I make it only explode when thrown against the right object, I risk making it look unrealistic. What to do... what to do... One solution would be to provide an infinite supply of the explosive items (e.g fill a chest with 3 or 4 of them, and when one is destroyed spawn a new one with createEntityAtArea). When the puzzle is solved you can just disable the respawn. I Might make an attempt to come up with an example map showing my approach later today.
Edit:
Done, download link:
http://dl.dropbox.com/u/64805489/explosions.zip
Youtube video (Processing at time of post):
http://youtu.be/THiQ-gF1qJ8 Hoho. Molotov shocktails.
Edit: Nice work.
ジ
(This post was last modified: 03-18-2012, 07:08 PM by Acies.)
|
|
03-18-2012, 07:07 PM |
|