if you have any code problems post here(it'l save space on the topic page) and itll be a giant topic
Offline
Hey! Kewl! I'm Terminator68 and your Terminator335!!
Offline
yah I saw that on a nother topic and almost posted!!!!!!!! its CCCCCCCCCCCOOOOOOOOOLLLLLLLLLL!!!!!!!!!
Offline
okay, first ill help you with the levels here goes:
[blocks]
(these are for the objects on the first level)
make a var called "level"
<when green flag clicked>
<show>
<forever>
<if><( <{ level }> <=> 1 )>
<show>
<end>
<if><( <{ level }> <>> 1 )>
<hide>
<end>
<end>
for level 2 make the same code exept these:
<when green flag clicked>
<hide>,
<if><( <{ level }> <=> 2 )>
show
and,
<if><( <{ level }> <>> 2 )>
<hide>
as you might have noticed he nums go up by one every level, so you can go on as many times as you want, and what kind of menus, if you give me more details i might be able to help you.
Offline
Codes??? Don't you mean scripts?
Offline
yah, same thing
Offline
will you see my mario kart one? that is what i need.
Offline
i dont see your mario kart project send me a link and ill try to help.
Offline
okay just put this in the up and down sprites:
[blocks]
<when green flag clicked>
<forever>
<set y to( (( <{ scrollY }> <+> (( 480 <*> num of sprite(can goto negatives) )) ))
<end>
and this in stage:
<when green flag clicked>
<forever>
<if><key[ up ]pressed?>
<change{ scrollY }by( -5
<end>
<end>
and in the same script put the oposite num and key and thats what i did for scrolling, hope this helps![/blocks]
Last edited by terminator355 (2008-08-25 19:29:38)
Offline
Juzzy wrote:
I need help with 4 directin scrolling. I have got side-to-side down but I don't know up and down.
OK seriously don't go into scrolling yet, your newb at scratch make some fantastic game on one screen then make a scrolling game, scrolling can get very complex at points, for example 360 degree scrolling:
[change scrollX by ( ( (sin of (direction)) * ((speed) * (-1) ) )]
[change scrollY by ( ( (cos of (direction)) * ((speed) * (-1) ) )]
Offline
I agree with dingdong.But when your ready you can start scrolling
young scratcher
here http://scratch.mit.edu/projects/keroro645/250128
Last edited by keroro645 (2008-08-25 19:41:51)
Offline
dingdong wrote:
Juzzy wrote:
I need help with 4 directin scrolling. I have got side-to-side down but I don't know up and down.
OK seriously don't go into scrolling yet, your newb at scratch make some fantastic game on one screen then make a scrolling game, scrolling can get very complex at points, for example 360 degree scrolling:
[change scrollX by ( ( (sin of (direction)) * ((speed) * (-1) ) )]
[change scrollY by ( ( (cos of (direction)) * ((speed) * (-1) ) )]
Meh, in my opinion scrolling is pretty easy to do. You can scroll left and right correct? Then for up and down create a scrolly variable, then repeat the steps in the scrolling tutorial except replace 480 with 360 and replace x with y.
Its really not that complex. You should be able to do it.
Last edited by archmage (2008-08-25 22:19:54)
Offline
terminator355 wrote:
i dont see your mario kart project send me a link and ill try to help.
never mind...i downloaded the project...the person put the mario course into seperate sprites. But you could help with this!!! how big is the scratch "work area"? Because I need To know that.
Offline
okay the x is 480 and y is 360
Offline
terminator355 wrote:
okay the x is 480 and y is 360
I fixed my own problem. but i need help with ? boxes that have a random item.
Offline
im on a psp but ill do my best. in your box sprite make a costme for all of the things that could be in it. then put this in it:
if touching (players sprite) set costume (random 2-last costume)
and:
if costume# = (wat ev) give power that costume would have
hide
(do that for all costumes)
hope this helps
Offline
Terminator some of the scripts you mentioned above use forever scripts and are constantly checking for sensors. The most efficent way to do things is to use broadcasts so you only have 1 forever script running instad of 10. The way to do this, as an example:
Lets say an object is touching the goal, so you gain to the next level. The best thing to do is use costumes, escpecially in the background. You can either simply change to the next costume once you broadcast, or you can change the level by 1, and then broadcast, and then switch to the costume of the level you are one. Basically what i am saying is using loops causes lags, so try to keep as little scripts running as possible at one time.
Offline
terminator355 wrote:
okay, first ill help you with the levels here goes:
[blocks]
(these are for the objects on the first level)
make a var called "level"
<when green flag clicked>
<show>
<forever>
<if><( <{ level }> <=> 1 )>
<show>
<end>
<if><( <{ level }> <>> 1 )>
<hide>
<end>
<end>
for level 2 make the same code exept these:
<when green flag clicked>
<hide>,
<if><( <{ level }> <=> 2 )>
show
and,
<if><( <{ level }> <>> 2 )>
<hide>
as you might have noticed he nums go up by one every level, so you can go on as many times as you want, and what kind of menus, if you give me more details i might be able to help you.
<when green flag clicked>
<hide>,
<if><( <{ level }> <=> 2 )>
show <-- this should be....
and,
<if><( <{ level }> <>> 2 )>
<hide>
<when green flag clicked>
<hide>
<forever>
<if><( <{ level }> <=> 2 )>
<show> <-- ....this
<else>
<hide>
<end>
<end>
Offline
seriously, that is how ive always scripted like that and they've never had lag on the site
Last edited by terminator355 (2008-08-28 09:25:47)
Offline
Thanks all of you guys for the up and down scrolling help. Now I am able to make a game that the backround scrolls in all directions (up,down,right,left).
Offline
please if you need help with scripting then don't make a new topic just look on one that already has what you're asking, or post on a topic like this.
Offline