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

Username:   Password: 
 RegisterRegister   
 Screen Dimension Decrease
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Mr. T




PostPosted: Sat Mar 19, 2005 7:25 pm   Post subject: Screen Dimension Decrease

In my game I want the screen size to decrease every level..

code:
if score=50
    then View.Set ("graphics:300;200,title:Uncle Worm           Score: " + intstr (score))
end if


Is it possible to use instr or some other way of decreasing the screen dimensions?
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Sat Mar 19, 2005 7:58 pm   Post subject: (No subject)

Right on.
code:

View.Set ("graphics:" + intstr (newMaxX) + ";" + intstr (newMaxY) + "title:....")
Mr. T




PostPosted: Sat Mar 19, 2005 8:46 pm   Post subject: (No subject)

for some reason when i make the screen dimensions a variable, my scoring system doesnt work?!?!

code:

score += 10 %when food collision detected points are added to score
View.Set ("graphics:" + intstr (newMaxX) + ";" + intstr (newMaxY) + "title:Uncle Worm           Score: " + intstr (score))
Cervantes




PostPosted: Sat Mar 19, 2005 9:18 pm   Post subject: (No subject)

This is one of those pesky problems that could take hours to figure out what's wrong. Unless you know what to look for. Here, I'll post the correct code, and see how long it takes you to find the error.
code:

score += 10 %when food collision detected points are added to score
View.Set ("graphics:" + intstr (newMaxX) + ";" + intstr (newMaxY) + ",title:Uncle Worm           Score: " + intstr (score))
Mr. T




PostPosted: Sat Mar 19, 2005 9:29 pm   Post subject: (No subject)

you forgot the comma in the original post... but I forgive you Razz
Cervantes




PostPosted: Sat Mar 19, 2005 9:33 pm   Post subject: (No subject)

Ah bloody hell! My apolagies. Embarassed
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  [ 6 Posts ]
Jump to:   


Style:  
Search: