Author |
Message |
Mr. T
|
Posted: 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
|
|
|
Cervantes
|
Posted: Sat Mar 19, 2005 7:58 pm Post subject: (No subject) |
|
|
Right on.
code: |
View.Set ("graphics:" + intstr (newMaxX) + ";" + intstr (newMaxY) + "title:....")
|
|
|
|
|
|
|
Mr. T
|
Posted: 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
|
Posted: 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
|
Posted: Sat Mar 19, 2005 9:29 pm Post subject: (No subject) |
|
|
you forgot the comma in the original post... but I forgive you |
|
|
|
|
|
Cervantes
|
Posted: Sat Mar 19, 2005 9:33 pm Post subject: (No subject) |
|
|
Ah bloody hell! My apolagies. |
|
|
|
|
|
|