News:

Building a 3D Ray Tracer  By stevmjon

Main Menu

Sliding Squares

Started by zlog08, August 06, 2007, 11:50:40 PM

Previous topic - Next topic

zlog08

Greetings ! This is my first post ,so, hope I don't stumble around too much.
I'm really new to PlayBasic so I have nothing but 'newbie' questions.... really boring I'm sure to you veterns!
I thought a really good way to get my feet wet with this language would be to load up some example games and see what makes them tick. See if I could follow the logic . I found the Sliding Squares  game in the tutorial folder and gave it a try.
Crashes right out of the gate. Anybody have this same problem?
I'm getting an error message that says ...

     Fatal Error    - Sprite #0  out of legal range ( 1 to 1500)
     Error Number:400  at line (88)
     SpriteVisible congratulations,0
     Error caused By:SpriteVisible

Any assistance is greatly appreciated, my ignorance is quite profound at this stage.

kevin


  What Sliding Squares example ?



zlog08

Sorry.... not enough info. I guess.  I installed the retail version of PlayBasic the other day. I used the default install locations . The file is as follows : C:\Program Files\Play Basic\Tutorials\SlidingBlock .
I see I've made another mistake ... I called it sliding squares ... should be Sliding Block.

kevin

 I'll assume you mean the sliding block game on here

http://underwaredesign.com/prod_detail.php?id=43


     Sadly,  some of those examples are very old and not written ensure future compatibility.  Meaning they rely upon old assumption in the PB that are no longer true.  This particular example is failing because the code is telling it modify a Sprite visibility, when  the sprite doesn't exist.   Which is a NO NO..  hence why PB has stopped the APP from running.




kevin


QuoteI installed the retail version of PlayBasic the other day

What version ?


zlog08

The version is 1.63h     IDE 1.1.5F

zlog08

Thanks for your help, Kevin . What I will do is just abandon that example and go on to other pieces of code.

kevin


I'll have a look at later and see if it mod/hack it to work.  Generally it's just matter of validating if the media exists prior to using it. 

kevin


  The Sliding Blocks Demo has been updated to work with PB1.63h and above.

  http://underwaredesign.com/prod_detail.php?id=43