This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Creating sprites offscreen


Creating sprites offscreen

Postby mmtbb » Mar 22, 2005 @ 8:02am

mmtbb
pm Member
 
Posts: 277
Joined: Mar 18, 2004 @ 6:56am


Postby sponge » Mar 22, 2005 @ 2:37pm

holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby mmtbb » Mar 22, 2005 @ 3:07pm

mmtbb
pm Member
 
Posts: 277
Joined: Mar 18, 2004 @ 6:56am


Postby kornalius » Mar 22, 2005 @ 3:19pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Mar 22, 2005 @ 3:45pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby mmtbb » Mar 22, 2005 @ 8:15pm

If I make a sprite onscreen, then it moves off screen then back on again, will it turn invisible and stop being processed?
mmtbb
pm Member
 
Posts: 277
Joined: Mar 18, 2004 @ 6:56am


Postby kornalius » Mar 22, 2005 @ 8:30pm

Not really. The sprite state won't change, the sprite won't be drawn that's it. G_RENDERSCENE, only draw sprites that are in view but the calculation to know if the sprite is in view or not is done only when the origins changes.

I will try to come up with some way of preventing this behavior without having to call ProcessSprites() and keep the speed.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Mar 23, 2005 @ 3:44pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron