Is there a command to completely lock the player’s movement (up, down, left, and right)?

kimduck

Member
I’m trying to make a mini-game.
I want to create a game where you match dango onto a skewer according to Ichitantal’s timing (video link:
).


I tried using nomove 1 and speed 0, but none of them work.
Since this is a mini-game, it’s not the original character. I changed the character state to weapon3, but the character using weapon3 (the skewer) keeps moving.


I want the character to stay fixed, and when the attack button is pressed, only the skewer should move forward.


Is there any command to completely disable movement (up, down, left, and right input)?
 
Solution
I've used this entity to do #1 and #2 at once:
Code:
name    1pbound
type    none


anim spawn
@script
    void self = getlocalvar("self");
    int P1 = getplayerproperty(0, "entity");

    if(P1){
      changeentityproperty(P1,"noaicontrol",1);
      bindentity(P1,self, 0, 0, 0, 0, 0);
    }
@end_script
    delay    5
    offset    1 1
    frame    data/chars/misc/empty.gif
    frame    data/chars/misc/empty.gif

anim idle
    delay    500
    offset    1 1
    frame    data/chars/misc/empty.gif

This entity disables control for player 1 and binds player 1 at itself. This entity is placed offscreen to do #2.
There's another one for player 2 with slightly different setting.
Is there any command to completely disable movement (up, down, left, and right input)?

The mini game is simple therefore I suggest doing these instead:
1. Disable player's control during this mini game.
2. Place player's character offscreen.
3. Spawn the skewer whose movement is controlled with script.
4. Code system to stick dango on the skewer.
5. Code system to end the level after all dangos have been stuck on the skewer.
 
The mini game is simple therefore I suggest doing these instead:
1. Disable player's control during this mini game.
2. Place player's character offscreen.
3. Spawn the skewer whose movement is controlled with script.
4. Code system to stick dango on the skewer.
5. Code system to end the level after all dangos have been stuck on the skewer.
How should I answer points 1 and 2?
I would appreciate it if you could explain how to apply them
 
I've used this entity to do #1 and #2 at once:
Code:
name    1pbound
type    none


anim spawn
@script
    void self = getlocalvar("self");
    int P1 = getplayerproperty(0, "entity");

    if(P1){
      changeentityproperty(P1,"noaicontrol",1);
      bindentity(P1,self, 0, 0, 0, 0, 0);
    }
@end_script
    delay    5
    offset    1 1
    frame    data/chars/misc/empty.gif
    frame    data/chars/misc/empty.gif

anim idle
    delay    500
    offset    1 1
    frame    data/chars/misc/empty.gif

This entity disables control for player 1 and binds player 1 at itself. This entity is placed offscreen to do #2.
There's another one for player 2 with slightly different setting.
 
Solution
I've used this entity to do #1 and #2 at once:
Code:
name    1pbound
type    none


anim spawn
@script
    void self = getlocalvar("self");
    int P1 = getplayerproperty(0, "entity");

    if(P1){
      changeentityproperty(P1,"noaicontrol",1);
      bindentity(P1,self, 0, 0, 0, 0, 0);
    }
@end_script
    delay    5
    offset    1 1
    frame    data/chars/misc/empty.gif
    frame    data/chars/misc/empty.gif

anim idle
    delay    500
    offset    1 1
    frame    data/chars/misc/empty.gif

This entity disables control for player 1 and binds player 1 at itself. This entity is placed offscreen to do #2.
There's another one for player 2 with slightly different setting.
thx
 
Back
Top Bottom