extends KinematicBody2D


var velocity = Vector2()
export var direction = -1

func _ready():
	if direction == -1:
		$AnimatedSprite.flip_h = true

func _physics_process(delta):
	
	if is_on_wall():
		direction = direction * -1
		$AnimatedSprite.flip_h = not $AnimatedSprite.flip_h
	
	velocity.y += 10
	
	velocity.x += 25 * direction
	
	velocity = move_and_slide(velocity,Vector2.UP)

You can post code here, not a problem, but just keep it all in this thread rather than making multiple threads.

I never once thought to use a forum like this like pastebin. I just use flashdrives. I like the one shaped like a fish I got back in 2011. I don't feel like uploading a photo so here's the model so you can look it up yourself :-)
EMTEC M317 Animal Series
I've got the penguin one too. Guess what it installs.

They need to use it on a school computer. Depending on the security settings, they might not have USB access either.

    cybereality I didn't think of that. That actually makes sense.
    All the computer labs in all the schools i went to encouraged us to keep our crap on USB drives. Maybe they changed that after kids kept spreading malware through their drives. My favorite is the one that flashed Jeff the Killer on screen with screaming and you couldn't turn down the volume. It persisted through reboot.

    Just for the next time you have to do this, and even perhaps if you need to do this from multiple services, you can do even better:

    1. Use GoogleDrive, OneDrive, Dropbox or similar services.
    2. Use Pastebin for simpler scripts, as said in other responses.
    3. If you have access to a Git client in your machine, use Github.com / Gitlab.com services. If you don't, you can STILL use Gitlab, which provided an online editor for your files.

    I recommend the third option, if you can, since you can always go back to previous versions of those files.