I want my character to bash into walls, how do i do that?
(if there is a house wall or any other wall blocking the player, the player should not move in the direction of the wall.) it should stay where it is and play a sound.
Offline
Blayer98 wrote:
i don't want coloured legs.
character stays the same colour for the whole game.
but i DO need something to detect collisions...
No, like make a sensor sprite with different colors for each direction. But make it invisible to the user.
Offline
Here is a random dungeon generator I made that uses a feeler sprite for collision detection against walls, just like what you seem to be looking for. The feeler sprite is a seperate, 10%% ghosted (not hidden) sprite that rides hidden, on top of the player's sprite (or whatever) It is the feeler sprite that has colored legs, you don't have to make any changes to your regular sprite
Last edited by Locomule (2013-01-28 12:06:12)
Offline