realbasic-nug
[Top] [All Lists]

Re: Mouse Clicks with a running sprite surface?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Mouse Clicks with a running sprite surface?
From: Noah Desch <noahdesch at erols dot com>
Date: Tue, 29 May 2001 17:50:31 -0400

On Tuesday, May 29, 2001, at 11:22  AM, Joseph J. Strout wrote:

At 10:00 AM -0500 5/29/01, Chris Dillman wrote:

can you get mouse clicks with a running sprite surface?

Yes, just use the Window's MouseDown event.

or call a function like Button() // C++

Yes, System.MouseDown.

and then get the mouse X/Y...

Window.MouseX and Window.MouseY.

I do not want to run a sprite withe a thread/timer
which shares CPU time better but runs like 5+ FPS or more slower.

I highly recommend running it from a timer nonetheless.

I'm having good luck with a threaded spritesurface. It's pretty fast, and the ProcessViewer under OSX shows that it's grabbing only 54% of the CPU, and this includes the double-draw caused by scrolling the spritesurface, which is my major bottleneck right now.

-Noah Desch
Wireframe Software
http://wireframe.virtualave.net



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