Hammerwatch Forum

Custom mapping and Mods => Editor Discussion => Topic started by: Amran on April 18, 2014, 06:55:17 PM

Title: Player Only Collision / Map Image
Post by: Amran on April 18, 2014, 06:55:17 PM
Two more questions relating to a level I've been working on!

-Is there a way to set the collision of a doodad to only block players, but not projectiles or enemies?
-How can an image be set to display in the menu screen when the map is selected (rather than the question mark preview image).
Title: Re: Player Only Collision / Map Image
Post by: Myran on April 19, 2014, 12:23:58 AM
No player only collision, no :\
Add a 80x60 image named icon.png in to the map directory (next to the info.xml and levels.xml)
Title: Re: Player Only Collision / Map Image
Post by: Amran on April 19, 2014, 03:16:06 AM
No player only collision, no :\
Add a 80x60 image named icon.png in to the map directory (next to the info.xml and levels.xml)

Great! Thank you for the fast reply!
Title: Re: Player Only Collision / Map Image
Post by: Heretic on April 19, 2014, 05:17:21 AM
Can have collision ignore projectiles though <collision shoot-through="true">
Title: Re: Player Only Collision / Map Image
Post by: Hipshot on April 19, 2014, 09:41:40 AM
You can also have the player AND enemies walk through a collision, using
Code: [Select]
collision-response="false"
I use this for very specific things, like using a "invisible" door that triggers when the person goes past it, like an area (but requires a key to activate). I'm not sure there are any other good usage for it, but maybe there are!