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: Seth Willits <seth at freaksw dot com>
Date: Tue, 29 Jul 2003 21:23:59 -0700
On Tuesday, July 29, 2003, at 08:47  PM, Joseph J. Strout 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!

To tell you the truth, it's how I began. I started *really* working with the sprite surface trying to copy SpriteWorld's functionality. I learned sooooooo much doing that.


Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames

"Lots of folks confuse bad management with destiny."
    -- Kim Hubbard
------------------------------------------------------------------------ ---


---
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>