This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-07-01 18:09:21

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Movement (need) Help

Hey need some scripts for non-scrolling movement that will not allow the player to walk through walls or jump through ceilings. It will be in the form of Super Smash bros but its not that game. I was hoping there would be one sprite that you would see as the backround and one sprite that would be the skeleton as a ghost. All help would be appreciated, especially fast help!

Offline

 

#2 2008-07-01 18:15:22

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: Movement (need) Help

Try this  smile  http://scratch.mit.edu/projects/Paddle2SeeFixIt/188825

/||\
|__|

Offline

 

#3 2008-07-01 18:15:37

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Movement (need) Help

Well, it seems it would be no different. liek if you have it moving 5 steps, when it touches the wall, it will move -5 steps so it offsets it


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#4 2008-07-01 18:34:46

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Movement (need) Help

It sort of works but I want to work with velocitys and stuff and I don't know how to incorperate his work into that stuff. I tried but the entire thing just flickered. Its a platformer.

Last edited by Bobby500 (2008-07-01 18:35:09)

Offline

 

#5 2008-07-02 07:02:21

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Movement (need) Help

I still need help!

Last edited by Bobby500 (2008-07-02 07:05:00)

Offline

 

#6 2008-07-02 10:46:02

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Movement (need) Help

Oh, if you are working with velocities, do this:

Forever
If touching wall
Move Velocity*-1 steps

Than you can change it up to make it seem like the character is gliding


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#7 2008-07-02 11:44:02

brgbdg9nanana
Scratcher
Registered: 2008-04-23
Posts: 19

Re: Movement (need) Help

I made this demo for things like this. Its pretty much what you are looking for.

Last edited by brgbdg9nanana (2008-07-02 11:44:41)


Brgbdg9nanana  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  smile  roll  big_smile  cool  lol  tongue Click here for an awesome stickman game! Need help with making a platforming game?

Offline

 

#8 2008-07-04 06:50:53

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Re: Movement (need) Help

ARRRG!!!! I still can't get it right! I try and try and it never works! When I tryed yours, Snake just fell through the floor. All of the variables were zero. I need help!!!!

Offline

 

Board footer