Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help needed making a new level
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lilreyrey




PostPosted: Thu Jan 03, 2008 1:28 pm   Post subject: Help needed making a new level

hey guys im making a program thats like Breakout style but without bricks. i know lol its a little lame but its my first time doing this.

i wanted to know is there a way to automatically add a ball whenever the score reaches a certain number instead of manually doing a Level2 like what i did.

sorry for not having internal documentation i never got around to it



proggy.rar
 Description:

Download
 Filename:  proggy.rar
 Filesize:  10.17 KB
 Downloaded:  68 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
HeavenAgain




PostPosted: Thu Jan 03, 2008 1:40 pm   Post subject: RE:Help needed making a new level

instead of making a procedure for each level, consider making the ball a procedure and its movement into a procedure instead.... so then when score is equal to however many then call to the ball procedure again!

and you know what i did?

in your code
code:
        if counter = 20 then
            Level2
        end if

i changed it to, and check out its amazing result o.o
code:
        if counter = 2 then
            Level2
            Level2
        end if

Laughing but thats not the way to do it.

Twisted Evil yay!! im a hacker now!! beware
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: