How do you make a platform? As said in previous posts I am new to scratch.
I know you need to make a new sprite then what?
Offline
? I dont understand.
Offline
Yeah but what is the script?
Offline
coolstuff wrote:
AlanProjects wrote:
Yeah but what is the script?
Okay, I will post a post soon telling you what to do. Just wanted to grab this oppurtunity before another person does.
So here goes...
It's a basic script, but it'll do.
<when green flag clicked>
<forever><if><touching color[ groundcolor ]>
<change y by( 4 )>
<else>
<change y by( -4 )>
<end>
<end>
So... knock yourself out!
Oh, and a tip: for movement, use this script:
<when green flag clicked>
<forever>
<if><key[ left arrow ]pressed?>
<change x by( -1)>
<end>
<if><key[ right arrow ]pressed?>
<change x by( 1)>
<end>
<end>
Last edited by coolstuff (2008-06-26 16:18:59)
Offline
Hey wait, that doesn't work! I need a platform i can jump on.(already know script for jumping)
Last edited by AlanProjects (2008-06-25 23:11:59)
Offline
yea me too i'm trying to make a scroller but instead of scrollingX (left and right) i'm trying to scrollY(up and down)
Offline
coolstuff wrote:
coolstuff wrote:
AlanProjects wrote:
Yeah but what is the script?
Okay, I will post a post soon telling you what to do. Just wanted to grab this oppurtunity before another person does.
So here goes...
It's a basic script, but it'll do.
<when green flag clicked>
<forever><if><touching color[ groundcolor ]>
<change y by( 4 )>
<else>
<change y by( -4 )>
<end>
<end>
So... knock yourself out!
Oh, and a tip: for movement, use this script:
<when green flag clicked>
<forever>
<if><key[ left arrow ]pressed?>
<change x by( -1)>
<end>
<if><key[ right arrow ]pressed?>
<change x by( 1)>
<end>
<end>
The platform script dosen't work, tried it.
Offline
joeisawesome wrote:
coolstuff wrote:
coolstuff wrote:
Okay, I will post a post soon telling you what to do. Just wanted to grab this oppurtunity before another person does.So here goes...
It's a basic script, but it'll do.
<when green flag clicked>
<forever><if><touching color[ groundcolor ]>
<change y by( 4 )>
<else>
<change y by( -4 )>
<end>
<end>
So... knock yourself out!
Oh, and a tip: for movement, use this script:
<when green flag clicked>
<forever>
<if><key[ left arrow ]pressed?>
<change x by( -1)>
<end>
<if><key[ right arrow ]pressed?>
<change x by( 1)>
<end>
<end>The platform script dosen't work, tried it.
hm... I didn't test it but I don't see what's wrong with it...
Offline
Trust me, if it worked, my game probably woul have been on the website by now, give or take an hour.
Offline
well fine but what do you mean by Ground Color? I'm talking about a platform in the air.
thanks.
Offline
You wait never mind, it works, but is there any way to make it smoother-flowing and not so....bouncy?
Offline
AlanProjects wrote:
You wait never mind, it works, but is there any way to make it smoother-flowing and not so....bouncy?
Use 1, but make sure your movement left to right is 1 as well as up and down so it offsets itself
Offline
Okay i'll try that.
Offline