Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
my second game, naalaa invader
#8
(02-08-2024, 03:23 PM)aliensoldier Wrote:
(02-01-2024, 08:15 PM)Marcus Wrote: I probably won't be able to look at the game until Saturday or Sunday, because I'll most likely be travelling. But I'll do my best to track down the runtime error then Smile

You have looked at the code and found the error, I think it could be the indexof() function, it is a function of yours and I don't know how it works exactly, although it could be something else.

I haven't looked at the code, sorry, too much happening around me - family stuff. Maybe you're trying to find the index of an object that is no longer in the list? Where ever you're using 'indexof', look at what it returns:

Code:
obj = indexof(...)
if typeof(obj)
  ' the object is in the list, do what you want to do.
  ' ...
else
   ' don't do anything :)
endif
Reply


Messages In This Thread
my second game, naalaa invader - by aliensoldier - 02-01-2024, 07:51 PM
RE: my second game, naalaa invader - by johnno56 - 02-01-2024, 08:14 PM
RE: my second game, naalaa invader - by Marcus - 02-01-2024, 08:15 PM
RE: my second game, naalaa invader - by Marcus - 02-09-2024, 09:22 PM
RE: my second game, naalaa invader - by johnno56 - 02-01-2024, 11:52 PM
RE: my second game, naalaa invader - by Tomaaz - 02-09-2024, 01:07 PM
RE: my second game, naalaa invader - by Marcus - 02-17-2024, 04:49 PM
RE: my second game, naalaa invader - by johnno56 - 02-17-2024, 07:01 PM
RE: my second game, naalaa invader - by Marcus - 02-17-2024, 10:56 PM
RE: my second game, naalaa invader - by johnno56 - 02-18-2024, 02:02 AM
RE: my second game, naalaa invader - by Marcus - 02-21-2024, 06:23 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)