How do you get the player to deduce the ground in a LUA script ?

sans13

sans13

Active member
i want to do make my player stomp but i can't happen to do this.

Here is what these supposed to give :
 

Attachments

  • srb20030.gif
    srb20030.gif
    3.4 MB · Views: 62
  • srb20031.gif
    srb20031.gif
    3.2 MB · Views: 64
  • srb20032.gif
    srb20032.gif
    3.6 MB · Views: 68
create a conversation with me and I will help you, but I think it's better that you say that if the character is in the STND sprite for example, it will break the ground in the still animation, that's what I know, but I found this bug hilarious, But I came here to help!
 
create a conversation with me and I will help you, but I think it's better that you say that if the character is in the STND sprite for example, it will break the ground in the still animation, that's what I know, but I found this bug hilarious, But I came here to help!
thank, i have to use the still animation.
 
I forgot to say try to do it by looking at other scripts but it doesn't work properly :
1720510936255


what is the preoblem in this Lua ?
 
Last edited:
The Problem is the p.mo.skin, fix it for player.mo.skin, I'm going to test it in a script like this which will be with player.mo.skin
 
I forgot to say that the problem is that the stomp works but the character refuses to destroy the ground.

1720545565408


The results with sonic of the lua sound in attachment files :
 

Attachments

  • srb20033.gif
    srb20033.gif
    5.3 MB · Views: 76
  • srb20034.gif
    srb20034.gif
    10.3 MB · Views: 66
When he executes, make him stay in the sprite MLEL and after it touches the ground it stays in the sprite STND, that would solve it, I think
 
I finally found the problem :

I used MEELE as a state.

Looking at the srb2 wiki I couldn't find the stomp value in player_t, constant and mobj_t.

Simply because stomp was a custom variable and so when copying part of the script I had forgotten this passage :

1720600120543


Thanks you help me find the problem !
 
What does your custom character look like? Do you want a character idea? If so, how about s2 sonic?
 
Beautiful
 
the ability you made, congratulations
 
Top