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

#1 2010-06-27 08:36:19

dr01d3k4
Scratcher
Registered: 2010-06-13
Posts: 7

Hai!

I've been making projects on scratch for a couple of weeks, but this is my first forum post. I've done Lua scripting before I started scratch (and thus have a very big headstart of the rest of my ICT class  big_smile ). My first (uploaded) project I created was a glitchy platform game. I have also created Pong on scratch, but there is a few glitches I need to fix before I upload it.

Offline

 

#2 2010-06-27 08:51:52

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Hai!

Welcome to Scratch or ^^

That's a nice platformer for a first try  smile


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#3 2010-06-27 09:00:07

dr01d3k4
Scratcher
Registered: 2010-06-13
Posts: 7

Re: Hai!

Ty  big_smile
Since then I have tried to make 2 more platformers, but 1 of them failed (the player lands on the floor, walks foward and falls through the floor), and the other 1 is very (for some unknown reason) very glitchy on 1 line of code. It was suppose to replicate Portal. I'd made the walking and jumping part of the script and it worked, but the portals themselves didn't work. Shooting was fine, but if you walk into the orange portal, it teleports you to the blue portal, as it should. But walking into the blue portal, teleports you to the center of the blue portal. I have no idea why.

Offline

 

#4 2010-06-27 10:14:37

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Hai!

The first platformer is great! I haven't tried the others, though, but you seem to be really picking this up nicely  smile

Offline

 

#5 2010-06-27 10:23:04

dr01d3k4
Scratcher
Registered: 2010-06-13
Posts: 7

Re: Hai!

Thanks.
I've been doing scripting in Lua for a while. I first saw scratch about a year ago, I downloaded it, and thought it was too simple and deleted it. I then downloaded it again a couple of weeks ago because we started using it in my ICT lessons. The rest of my class are learning about key presses, moving and changing costumes. I spend the lesson playing around, or helping other people.

Offline

 

#6 2010-06-27 11:32:58

Mockodile
Scratcher
Registered: 2010-06-24
Posts: 76

Re: Hai!

Welcome to Scratch


http://i284.photobucket.com/albums/ll9/sunnycide/snowmansig.png

Offline

 

#7 2010-06-27 12:01:38

dr01d3k4
Scratcher
Registered: 2010-06-13
Posts: 7

Re: Hai!

Ty! I just uploaded another project, it's not finished yet, but all of what is done works:
http://scratch.mit.edu/projects/dr01d3k4/1155354
It's a 1 script, 1 sprite, 1 costume game.

Offline

 

#8 2010-06-27 12:40:01

PW132
Scratcher
Registered: 2009-05-16
Posts: 1000+

Re: Hai!

Cool stuff! Anyway, on the Portal game, look VERY carefully. Ive been stumped MANY times for why my code wasn't working, because I was looking carelessly.


SCRATCH 2.0 OHHHHH MANNNNNNN
http://i18.photobucket.com/albums/b107/PsychicDeath/universe.gif

Offline

 

#9 2010-06-27 13:00:13

dr01d3k4
Scratcher
Registered: 2010-06-13
Posts: 7

Re: Hai!

I worked out why it wasn't working and I fixed it. It was because the code was setup like this:

change gntp by - 1
if key s pressed
if gntp = 0
if touching BluePortal
goto OrangePortal
set gntp to 30
end
if touching OrangePortal
goto BluePortal
set gntp to 30
end
end
end

The 'gntp' value means 'gone through portal'. It is a timer, so that you can't touch a portal and constantly get teleported through. You have to wait until it is 0 again. The reason this code didn't work is because you went through the blue portal, teleported to orange portal, and gntp set to 30. Then on the next if, it sees that you are touching the orange and teleports you back to blue, without checking for the gntp value.

Offline

 

Board footer