Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / tempromental sprites

Author
Message
trager
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United Kingdom
Posted: 21st Mar 2003 15:23
When I run this code the sprite it creates doesnt always show
if however I run it twice once after the other a sprite is always shown can anyone suggest why this might be?

make_planet_info:
planet_name$ =planet_table(star_lp).name$
size_subscript = planet_table(star_lp).size
climate_subscript = planet_table(star_lp).climate
size$ = planet_size(size_subscript).description$ + ", "+climate_table(climate_subscript).description$
pop$ = str$(planet_table(star_lp).current_population/1000000) + "/" + str$(planet_table(star_lp).max_population) + " pop"
abundance_subscript = planet_table(star_lp).mineral_abundance
abundance$ = abundance_table(abundance_subscript).description$
gravity_subscript = planet_table(star_lp).gravity
gravity$ = gravity_table(gravity_subscript).description$

longlen = text width(planet_name$)
if longlen
trager
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United Kingdom
Posted: 21st Mar 2003 15:32

this even
trager
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United Kingdom
Posted: 21st Mar 2003 16:02
nevermind I've sussed it I just hide unused sprites rather than deleteing them.
exhaulted
21
Years of Service
User Offline
Joined: 27th Mar 2003
Location:
Posted: 27th Mar 2003 15:28
I had the same problem with a project a while back - i just ended up hiding the sprites or moving them off of the area of the screen

trager
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United Kingdom
Posted: 28th Mar 2003 14:19
yup thats what I did

There is no answer only more questions.

Login to post a reply

Server time is: 2024-04-27 04:25:29
Your offset time is: 2024-04-27 04:25:29