Discuss Scratch

foxyfox25614
Scratcher
36 posts

How to make a sprite wallhop? with awser

Today i will show you how i made my sprite wall hop in : https://scratch.mit.edu/projects/360662241/

First I did like this.
whenclickedset gravityto0foreverchangeybygravitychange gravityby-1iftouchingcolor?thenset gravityto0ifkey up arrowpressed?thenset gravityto14theididifkey left arrowpressed?thenchangexby-4iftouching wall?thenchangexby4changexbygravitychangeybywalllooknowyourspritecanwallhop!sorryifitsglitchyorbuggy,Thatshowiknowhowto!!

Last edited by foxyfox25614 (Jan. 20, 2020 11:59:51)

semmiesem9
Scratcher
100+ posts

How to make a sprite wallhop? with awser

It's nice that you want to help people make a script, but this forum is meant for people who need help to ask for help. The chance that someone who wants to make a wallhop script will come over here and see this topic before it descends many pages down is very small, and it's much tidier if they make their own topic for that.

If you want to make a tutorial, please create and share a project for that instead!
deck26
Scratcher
1000+ posts

How to make a sprite wallhop? with awser

That's not how this forum works - try Show and Tell if you think you have something you want to show.

The forum works best if we let those needing help post new topics and we respond where we have something useful to add. It's great that you want to help but that's how to do it.
foxyfox25614
Scratcher
36 posts

How to make a sprite wallhop? with awser

fixed:


whenclickedset gravityto0foreverchangeybygravitychange gravityby-1iftouchingcolor?thenset gravityto0ifkey up arrowpressed?thenset gravityto14

then i did this:


ifkey left arrowpressed?thenchangexby-4iftouching wall?thenchangexby4changexbygravitychangeybygravity

and done!

Powered by DjangoBB