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

#1 2009-02-27 20:50:06

qlmaX5
Scratcher
Registered: 2009-02-27
Posts: 4

Mountains Of Mischief

Hello :D

Me and a friend are currently working on a Scratch project named Mountains Of Mischief. It is a side-scrolling, grappling-hook shooter game, where you try to pull yourself across various mountainous areas. So far, I am the only one working on the Scratch version, so it's going relatively slowly, but I now have an open beta of the physics engine up at http://scratch.mit.edu/projects/qlmaX5/433675. It has a working velocity system, which I coded really quickly  :D
If you want the code, here it is:

Forever
if not touching sprite1 and velocity < 50
change Velocity by -1
else
if Velocity = 50 and not touching sprite1
change velocity by 0
else
if touching sprite1
set Velocity to 0

I also have a fall part with

forever
if not touching sprite1
change x by <Velocity>
else
change x by 3 (to stay above the mountain, but creates the weird bumpy effect)

The blocks are wierd and glitchy on my computer, so I'm not going to imbed the visual code  :P

Offline

 

Board footer