Author |
Message |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: Mon May 12, 2008 9:33 am Post subject: Clicking to start |
|
|
We've all played that really annoying game where the zombie pops up at the end. Now try to remember that you have to click on the blue (or whatever color) to begin. I'm trying to duplicate it, but i failed.
Try my game, starting from lvl2 one has to click the blue dot to begin, but it wont because i include the filed to soon, but i don't know what else to do.
hope you can help:)
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Game.zip |
Filesize: |
986.69 KB |
Downloaded: |
303 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: Tue May 13, 2008 7:20 am Post subject: RE:Clicking to start |
|
|
Anybody?? Plz??
|
|
|
|
|
![](images/spacer.gif) |
petree08
|
Posted: Tue May 13, 2008 7:47 am Post subject: RE:Clicking to start |
|
|
why do you have a procedure for every level,
if you are doing the exact same thing in each level you really only need one
proc lvlRun (LevelNumber: nat1)
|
|
|
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: Tue May 13, 2008 8:09 am Post subject: RE:Clicking to start |
|
|
i'm changing the vars for every lvl
|
|
|
|
|
![](images/spacer.gif) |
petree08
|
Posted: Tue May 13, 2008 8:23 am Post subject: RE:Clicking to start |
|
|
duh, that's why we have parameter passing for procedures,
example
code: |
procedure Add_Nums (Num1, Num2 : nat1, var Sum :nat1)
Sum := Num1 + Num2
end Add_Nums
var Sum : nat1
var Num1, Num2 : nat1
put "Enter Num1"
get Num1
put "Enter Num2"
get Num2
Add_Nums (Num1, Num2, Sum)
put "The sum of those numbers is ", Sum
|
the procedure can be used to add any two numbers.
|
|
|
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: Tue May 13, 2008 8:28 am Post subject: RE:Clicking to start |
|
|
can youy help me with the problem i posted?
|
|
|
|
|
![](images/spacer.gif) |
petree08
|
Posted: Tue May 13, 2008 8:33 am Post subject: RE:Clicking to start |
|
|
i think you should get a better understanding on the basics of programing before you start doing stuff like this (not that this is terribly hard)
|
|
|
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: Tue May 13, 2008 11:11 am Post subject: RE:Clicking to start |
|
|
hey man, i know the basics, i'm using procs 'cause i feel like it (that is basic programing) so just chill out dude
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
petree08
|
Posted: Tue May 13, 2008 11:40 am Post subject: RE:Clicking to start |
|
|
The term chill is being missused here, I'm not flaming or anything , it's just the code for that game suggests that you don't have a very good handle on the basics, also coding a "click to start" section is relativly easy and someone with a good understanding wouldn't need to ask that.
|
|
|
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: Thu May 15, 2008 7:32 am Post subject: RE:Clicking to start |
|
|
would anyone else besides petree08 care to help me??
|
|
|
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: Thu May 15, 2008 11:48 am Post subject: RE:Clicking to start |
|
|
nerver mind ppl, i got it to work
|
|
|
|
|
![](images/spacer.gif) |
|