Pages: 1
Topic closed
It is actually quite big, on the order of around two full pages, (not in collumns). I, however, am done making it and stuff, anf from now on am just adding costumes to the background to make more levels. Well, for each level i will add a broadcast to switch levels but whatever. ( actually, i think i have the broadcast set to "next level").
Yep broadcast is next level.
[blocks]
<when green flag clicked>
<forever>
<if><touching color[ yellow
<set{ x speed }to( 0
<set{ y speed }to( 0
<go to x -208 )y
-96
<broadcast[ next level
And then the background's part:
<when I receive[ next level
<next costume>
<wait( 1 )secsc>
Uh-oh, i just realized that two of the levels i used seperate broadcasts to use successive platforms:
<when I receive[ level 2
<switch to costume[ background 3
<when I receive[ level 3
<switch to costume[ background 4
<when I receive[ level 4
<switch to costume[ background 5
<when I receive[ button level 1
<switch to costume[ background 7
And for the sprite's part:
<when green flag clicked>
<forever>
<if> <color[ beige ]is over[ orange
<broadcast[ level 2
<if> <color[ beige ]is over[ orange-brown
<broadcast[ level 3
<if> <color[ beige ]is over[ orange
<broadcast[ level 4
<when green flag clicked>
<forever>
<if> <touching color[ green
<broadcast[ button level 1
[/blocks]
I am pretty sure that's it for level transition, so yah, I need help with the lag. Oh wow, I just realized I got carried away on the little detail there ^^. Oh well.
Offline
hmmm... I have found that lots of brodcasts can lag stuff up... but maybe you should just edit stuff in chunks and then put it all together.
Offline
How do you put it all together? I've tried, but the script ended up not working. Wait, like taking out the scripts like this except for one and adding them all to it?
[blocks]
<when green flag clicked>
<forever>
Offline
[img]<head>
<script type="text/javascript">
function show_alert()
{
alert("mwhitey12 in da house");
}
</script>
</head>
<body>
<input type="button" onclick="show_alert()" value="click this" />
</body>[/img]
Offline
Try not to use broadcasts. There's a 0.05 or so second delay.
Offline
Topic closed
Pages: 1