That shouldn't be in the function in your type - create object p outside of the type declaration, before the Repeat Until loop.
What am I doing?
BlitzMax Forums/BlitzMax Beginners Area/What am I doing?The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.