[4.1.5] Pushable block?

Hello all. :) I am hoping someone may be able to help me.

I am creating a game in the adventure module.
I would like to have a "box" tile that the player can push by walking into it. Additionally, tiles in this game are 32x32, so it should move 2 tiles in whatever direction the player is facing. Would this be possible, and of so, how to do it?

Thanks in advance. :)
 

mouse spirit

Well-known member
Well in zelda 1 for nes, when you push a block,its only to start pushing as the blockdoes the rest itself. Could be a tile but my guess is that it's more of a monster that is solid or something.

So a vague example...

Make a solid monster
Ask monster which side player is touching
Ask if player is moving
Wait one second
Move block in direction player is moving

I need to figure this one out too. Im really intersted in a simple solid monster script. May not be so simple.
 

mouse spirit

Well-known member
Okay so i thought more about this.
Make a monster that only goes nowhere in action state 00 right in action state 01, nowhere in state 02.(because the switch is too the right in my scenario) doesnt interact with player or weapons,and stops at solids.Make it have a bounding box,maybe almost a full one if not completely full.

So it may go like this.....
When on a special tile(canipushtile asm ,which we have not created), and pressing right,activate certain monster type (check monster type), make that type go to action state 01 which is move right for 1 tic and stop at solids which will put monster on top of switch.Make sure monsters or specifically this monster type can interact with switches..then go to next step which is dont move and loop.

Set this up for a screentype.Do the same for a left only block, up, and a down one.

Meaning one script for 4 screentypes, that work for the 4 directions, for the 4 monsters. With this you could
make one block a room that moves a certain direction onto a switch in theory.

If you dont want it on a switch, use monster blocks to stop the block accordingly.
 

mouse spirit

Well-known member
Another idea is to utilize the hurt reaction of a monster as it seems to make make them go in the direction you are facing(basically).Like use a sword to move blocks (a monster) or think of it like that. The code may need to be set up in a similar fashion.
 
Top Bottom