トピック
V360 TheV360

For some reason I keep getting out of range errors. Can someone look at the code?

0そうだね
プレイ済み
返信[1]
親投稿
TN21 Trinitro21
Well, RND has two parameters now. The first one is the seed ID, which is from 0-7, and the second one is the max value.
1そうだね
プレイ済み
返信[2]
親投稿
V360 TheV360
The seed parameter is optional, though. When I tried using the parameter, the error still happened. Also, the error is in the attached screenshot.
0そうだね
プレイ済み
返信[3]
親投稿
TN21 Trinitro21
If EGG_EX>39 or EGG_EY>29, it triggers an error because you're asking it to print outside the screen boundaries.
0そうだね
プレイ済み
返信[4]
親投稿
TN21 Trinitro21
(LOCATE:1) means that the first parameter of LOCATE is causing the error. Keep in mind that you said DISPLAY 1 right before LOCATE and that means you're on the 40x30 lower screen.
1そうだね
プレイ済み
返信[5]
親投稿
V360 TheV360
Whoops... I meant to select the top screen. I probably thought that 1 was the upper screen and 2 was the lower screen. Thanks!
0そうだね
プレイ済み