Burger Pants' addition.


So last night (Jan 27th 2023), fucked around a bit with buddies than got to work.

Actually doing the task as I write this so expect this to be long, I imported the entirety of the sprite sheet to Godot and started trying to get it to work, wasn't the simplest task due to how little space there was between the sprites but I managed via editing the spacing and seperation and how big the sprite grabber was.

After that hit play on the animation and it was smoothe as hell. Than for fun I flipped Burger Pants onto the Y Axis for fun and now we have Verticle Pants lmao.


^

(Picture of Vertical Pants)

Anyways what's next to come is the walking sprites for the down animation, and because I'm an idiot instead of using premade mapping i'm making my own.

I decided I would make the control maps one at a time based on what sprites I have done.

I added the Down Walking sprites and was stunned once more at how smoothe it was, now to just code in the downwards movement.

I added the movement and was confused why it wasn't working, than I realized not only was the script attached to the scene, i didn't even have a kinematic body in, yikes.

Now that the script was working I realized a bit of the ear on the idle was missing.

so I fixed that by deleting all the idle sprites and re adding them.

now hears the movement code thus far.

extends KinematicBody2D  
export (int) var speed = 150  
var velocity = Vector2()  
func _ready():     
$BPSprites.animation = "DownIdle"  
func get_input():     
    velocity = Vector2()     
    if Input.is_action_pressed("BPDown"):         
        velocity.y += 1         
    $BPSprites.animation = "DownWalk"     
    if Input.is_action_just_released("BPDown"):         
        $BPSprites.animation = "DownIdle"     
    if Input.is_action_pressed("BPRight"):        
         velocity.x +=1

Notice the problem here?

Exactly, no left, right, or up.

So now I have to add the mapping for those and their sprites.

While adding the Right movement of code it started crashing.

wondered why so I checked the error log and couldn't see the problem.

5 minutes later, realized it was because i forgot to add,

.x

So, yeah.

Regardless back to work.

Now that left and right are in the character is nearly all set, all that's left was to add the up sprites and it'd be done, this was of course an easy task and now that all all sprites are down and movement added that's the end of the devlog.

Next will be the addition of the save screen (Probably)

With that I hope you all have an excellent day or night.

Leave a comment

Log in with itch.io to leave a comment.