realbasic-games
[Top] [All Lists]

Slow Sprites and Editfields

To: realbasic-games at lists dot realsoftware dot com
Subject: Slow Sprites and Editfields
From: Zac Cohan <applezac at mac dot com>
Date: Tue, 21 Dec 2004 21:46:28 +1100
Delivered-to: realbasic-games at lists dot realsoftware dot com
Hello.
Whilst playing around in sprites on the Mac version of Realbasic 5.5.4 i tried to make an edit-field display the position of a sprite within its spritesurface with code that looked like this:

  s.x=s.x+1
  xvalue=s.x
  EditField1.Text=str(xvalue)

In the nextframe event of a spritesurface where "s" is a sprite and "xvalue" is an integer.
Try as I might, I could not get the edit-field to display the value.
Incredibly, with the same code, my friend was able to make it work great in the windows version of realbasic. Anyone have an idea why this might be? Also, I find it very odd that moving a picture across the screen using sprites in RB milks my processor to 100% stalling anything else, whilst seriously graphic intensive games work great.
Oh well, thanks a lot for your help,

-Zac Cohan

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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

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