realbasic-games
[Top] [All Lists]

Re: Trouble with SubClass & SpriteSurface

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Trouble with SubClass & SpriteSurface
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 29 Jul 2003 20:47:42 -0700
At 6:37 PM -0700 7/29/03, Seth Willits wrote:
On Tuesday, July 29, 2003, at 05:19  PM, Eric wrote:

Now  when I went to put the following in
there was no place to put it. No paint tile
in the instance.

I forgot to mention this: When you use an event in a class, you have to create the event and then call it from the class for instance. IOW, open the ss subclass, and choose "New Event" from the menu, then create an event to match:

I would suggest that all this is too complex for a beginner, for very little benefit. My recommendation is to forget the subclass idea; just drag a SpriteSurface onto a window and put your code there. You have more pressing issues to deal with than sharing of code among multiple projects!

Cheers,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.


<Prev in Thread] Current Thread [Next in Thread>