This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-26 17:45:51

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

I'm making a Pokemon Game But...

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.


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#2 2013-01-26 18:33:50

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: I'm making a Pokemon Game But...

use a ghosted feeler sprite to detect collisions using a different color leg for all four directions


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#3 2013-01-26 19:32:24

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: I'm making a Pokemon Game But...

i don't want coloured legs.

character stays the same colour for the whole game.

but i DO need something to detect collisions...


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#4 2013-01-26 23:17:40

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: I'm making a Pokemon Game But...

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.


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#5 2013-01-28 12:04:23

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: I'm making a Pokemon Game But...

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  smile

Last edited by Locomule (2013-01-28 12:06:12)


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer