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

#1 2012-09-22 13:02:28

oshe10
Scratcher
Registered: 2012-06-21
Posts: 92

Help with my platformer,Please

Some people say that i need a faster engine on my newest platformer. can someone help me please?


http://i.imgur.com/w4rS6.jpg

Offline

 

#2 2012-09-22 13:10:40

Ztype
Scratcher
Registered: 2012-08-27
Posts: 100+

Re: Help with my platformer,Please

Here I fixed it with a simple piece of coding - http://scratch.mit.edu/projects/Ztype_Test/2793951 - just download - I have put a comment on where the new coding is so you don't have to put up with the "based on Ztype's Project".


http://i.imgur.com/DSmyV.png

Offline

 

#3 2012-09-22 14:41:39

oshe10
Scratcher
Registered: 2012-06-21
Posts: 92

Re: Help with my platformer,Please

Ztype wrote:

Here I fixed it with a simple piece of coding - http://scratch.mit.edu/projects/Ztype_Test/2793951 - just download - I have put a comment on where the new coding is so you don't have to put up with the "based on Ztype's Project".

That didn't work.


http://i.imgur.com/w4rS6.jpg

Offline

 

#4 2012-09-22 14:48:46

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Help with my platformer,Please

There are quite a few improvements that could be made. Let me give you a few gravity scripts.

Here is the gravity.

when gf clicked
set [gravity v] to (-.4)
set [velocity v] to (0)
forever 
if <touching [ground v]?>
set [velocity v] to (0)
else
change [velocity v] by (gravity)
change y by (velocity)
Here is jumping to work with gravity

when gf clicked
forever if <key [space v] pressed?>
if <(yvelocity) = (0)>
set [jumping v] to (1)
repeat (10)
change [yvelocity v] by <(gravity) * (-1.4)>
end
set [jumping v] to (0)
This is just one of the things you can do. It will prevent your character from flying, it will add velocity to your jumping and falling, and you can easily edit it.


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

Board footer