I'm afraid that won't work. You'll need four sensor sprites, one for each direction, that go around the player. Here is an example one for the bottom (if your player isn't 12 pixels high, change the 6 to the height of the player / 2), with wall color black:
Then, when you tell your player to move down, check whether touchdown? is true, and if it is, don't let them!
Then, do the other directions similarly.
Last edited by Lar-Rew (2011-01-23 10:37:18)
Offline
Lar-Rew wrote:
I'm afraid that won't work. You'll need four sensor sprites, one for each direction, that go around the player. Here is an example one for the bottom (if your player isn't 12 pixels high, change the 6 to the height of the player / 2), with wall color black:
Then, when you tell your player to move down, check whether touchdown? is true, and if it is, don't let them!
Then, do the other directions similarly.
what are sensor sprites?
Offline
It's the sprites that follow the player that are invisible.
They sense what's around the player.
Offline
Lar-Rew wrote:
I'm afraid that won't work. You'll need four sensor sprites, one for each direction, that go around the player. Here is an example one for the bottom (if your player isn't 12 pixels high, change the 6 to the height of the player / 2), with wall color black:
http://i51.tinypic.com/2ue003o.gif
Then, when you tell your player to move down, check whether touchdown? is true, and if it is, don't let them!
Then, do the other directions similarly.
Did you even read the above?
Offline
What you can do is make the walls a certain colour, and then if your guy is touching that colour, make him turn in the opposite direction and move 20 steps away. Easier than sernsors!
Offline
Lar-Rew wrote:
I'm afraid that won't work. You'll need four sensor sprites, one for each direction, that go around the player. Here is an example one for the bottom (if your player isn't 12 pixels high, change the 6 to the height of the player / 2), with wall color black:
http://i51.tinypic.com/2ue003o.gif
Then, when you tell your player to move down, check whether touchdown? is true, and if it is, don't let them!
Then, do the other directions similarly.
Yes, it does tell you how to make a sensor sprite. That is the only script for it.
Offline
It can look like anything, as long as it's around the size of the character.
AND IT'S SENSOR SPRITE'S COSTUME
The sprite includes all costumes and scripts, and this forum is mainly for scripts.
@lar-Rew-you have 11 and a half moths?
Offline
kayybee wrote:
It's going to be harder because you are trying to make 3d-ish rpgs, with tiles/tile movement.
try only bird's eye view, like pokemon or zelda, etc.
I know it'll be harder, but i thikn i can pull it off if someone tells me how to make sprite sensors
Offline
Btw, i just uploaded a new update, really would like you guys to take a look. The yes please button in not yet fuctional when your talking to the shop owner, but i just want you guys to see what im doing and why i need these walls so badly..
Offline