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

#1 2010-02-27 23:02:54

yoshidude56
Scratcher
Registered: 2010-01-12
Posts: 100+

Help!

I need help making a slope sensor that makes you slide down a hill! It needs to detect slopes of all angles, because your hill will rotate!  sad


http://i46.tinypic.com/2ut2ir4.png

Offline

 

#2 2010-02-28 02:06:17

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Help!

Ouch, that seems complicated... I'm having trouble picturing it. Can you explain a bit more, and maybe give a picture?

Hang on, I'll ask someone who's an awesome programmer (RHY3756547) to take a look at this.  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2010-02-28 04:14:39

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Help!

Here is a slope detecting engine, if you don't consider yourself to be a very good Scratcher, then I wouldn't attempt this, but otherwise, go ahead!


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#4 2010-02-28 06:32:26

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Help!

WeirdF wrote:

Here is a slope detecting engine, if you don't consider yourself to be a very good Scratcher, then I wouldn't attempt this, but otherwise, go ahead!

That's pretty interesting... I used a similar method in my Line Wars game...

If you combined that with my perfect platformer base then you'd have a nice effect. Just swap the type of Slope detection I guess...

But yeah - that system is a bit complex if you don't understand trigonometry.

Offline

 

Board footer