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

#1 2012-06-09 18:40:47

Zparx
Scratcher
Registered: 2011-03-23
Posts: 500+

**A Simpler Way to Make Platformers!!!!**

A while back I made a post in the help section asking how I could make it possible to detect multiple platforms with a simple script instead of using this:

 when gf clicked
forever
if <<(touching [ground 1 v]?) or (touching [ground 2 v]?)> or (touching [YOU GET THE POINT v]?)>
*commands for touching sprites in the conditional here* //link below (:
^ That script can get long and annoying. And, as no one could help me in the forums, I'm pleased to say that I've managed to devise an engine that can detect multiple platforms using a simpler script by using lists! Here's an idea of how:

when gf clicked
forever
if (touching (item (ground#) of [list of ground sprites! v])?)
*commands for touching sprites in the conditional here* //link below (:

The only downfall is that this engine only works in turbo mode with the flash player.. To see the project CLICK HERE!!!!

Last edited by Zparx (2012-06-09 18:45:08)


http://images3.wikia.nocookie.net/__cb20101119183412/halo/images/4/43/Hero2.png
^ My rank on Halo: Reach :3

Offline

 

#2 2012-06-11 13:34:51

Zparx
Scratcher
Registered: 2011-03-23
Posts: 500+

Re: **A Simpler Way to Make Platformers!!!!**

Bump (:


http://images3.wikia.nocookie.net/__cb20101119183412/halo/images/4/43/Hero2.png
^ My rank on Halo: Reach :3

Offline

 

#3 2012-06-11 13:36:45

Hotwire
Scratcher
Registered: 2011-08-10
Posts: 500+

Re: **A Simpler Way to Make Platformers!!!!**

Wow! Very smooth... swarve.


http://i47.tinypic.com/293wn60.png

Offline

 

#4 2012-06-11 13:52:37

Zparx
Scratcher
Registered: 2011-03-23
Posts: 500+

Re: **A Simpler Way to Make Platformers!!!!**

Hotwire wrote:

Wow! Very smooth... swarve.

Thanks! (:


http://images3.wikia.nocookie.net/__cb20101119183412/halo/images/4/43/Hero2.png
^ My rank on Halo: Reach :3

Offline

 

Board footer