Preventing "entity does not exist" type of errors?
👉Blast3D is now FREE👈
Support Future Updates by Becoming a Blitz Backer on Patreon.
Tweet
Hi! I'm glad to finally become a member of this site. :)
I've been having a lot of fun programming on this amazingly compact and versatile IDE, but one thing I cannot wrap my head around is a common error i keep running into that confuses me a lot.
There is no specific code that this applies to, it just happens to me every now and then and I get stuck, often with functions and external *.bb files.
Basically I'll declare a variable within a function, and referring it from elsewhere will give the "-does not exist" error. Are there any 'guidelines' that can help prevent errors like this?
Thanks!
Hello and welcome aboard. Blitz3D Entities always return a non zero integer when created so you can do some conditional checks before doing commands associated with the entity in question.
Btw what do you mean by conditional checks?
if(cube > 0)
; code here that makes use of cube
endif
Reply To Topic (minimum 10 characters)
Please log in to reply