Found an issue in SpiderBasic ? Please report it here !
Posts: 5
Joined: Thu Jan 10, 2019 1:54 am
Location: New Brunswick, Canada

LoadSprite(#PB_Any): The Value is = [object Object] ???

by Charlie Sun Feb 10, 2019 12:38 am

BTW: I'm using SpiderBasic 2.21 (x86)

I couldn't get a sprite to load for my application until I replaced MySprite = LoadSprite(#PB_Any, ...) with a static number: LoadSprite(0, ...)

Doing a little debugging, come to find out LoadSprite(#PB_Any, ...) returns " [object Object] ", so I'm thinking there is a little something wonky with using #PB_Any with LoadSprite to auto-generate an identifier for sprites.

Can anybody else duplicate ?
Site Admin
Posts: 1135
Joined: Mon Feb 24, 2014 10:51 am

Re: LoadSprite(#PB_Any): The Value is = [object Object] ???

by Fred Tue Feb 12, 2019 10:41 am

[Object object] is not wrong, but there is may be something odd with #PB_Any and LoadSprite(), I will take a closer look.
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest