Data Realms Fan Forums http://45.55.195.193/ |
|
Scene width http://45.55.195.193/viewtopic.php?f=73&t=15180 |
Page 1 of 1 |
Author: | Mind [ Thu Jun 04, 2009 11:01 pm ] |
Post subject: | Scene width |
How would you go at finding the scene width with lua? I think it would be a function, but not entirely sure. Something like this: Code: function "find scene width" end if self.X.Pos > Scene.Width then self.X.Pos = 0 end I think it would be something like that, just dont know exactly how to do it. Thanks |
Author: | Grif [ Thu Jun 04, 2009 11:25 pm ] |
Post subject: | Re: Scene width |
SceneMan.SceneWidth |
Author: | Mind [ Thu Jun 04, 2009 11:55 pm ] |
Post subject: | Re: Scene width |
Grif wrote: SceneMan.SceneWidth K, thanks. And would it be "find SceneMan.SceneWidth" in the function? |
Author: | Grif [ Thu Jun 04, 2009 11:58 pm ] |
Post subject: | Re: Scene width |
Should just be able to reference it directly; eg: if self.Pos.X >= SceneMan.SceneWidth then self.Pos.X = 0; end |
Author: | Mind [ Fri Jun 05, 2009 12:03 am ] |
Post subject: | Re: Scene width |
Grif wrote: Should just be able to reference it directly; eg: if self.Pos.X >= SceneMan.SceneWidth then self.Pos.X = 0; end Thanks a lot, grif. Once i get on my other computer, ill update it and obviously give u creds. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |