The Daily Click ::. Forums ::. Klik Coding Help ::. "sticky" active objects
 

Post Reply  Post Oekaki 
 

Posted By Message

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
24th September, 2003 at 14:58:35 -

here's the situation. my game runs with 80-100 objects on the screen (which is about 4000*600 in dimensions) normally, and it runs fine. (we're talking MMF here). when there's upwards of 150 (say, during an explosion or when several bodies have been ripped to shreds), a large object will sometimes get "stuck" to the screen as it scrolls. e.g. it's like somehow the "follow the frame" option has been turned off for just that object. the object eventually dissapears but it's bloody annoying to have a floating severed head everywhere you go.

i've mucked around with directx/vram options and that has not affect. does anyone have any suggestions as to why this might be happening?

 
www.thenatflap.co.uk

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48487

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
24th September, 2003 at 16:13:11 -

I've had this problem, and found that usually the active object which sticks to the frame has some sort of transparancy effect (eg, transparant, OR, AND, XOR, stuff like that). Turn that off if you have it on.

 
n/a

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
25th September, 2003 at 01:05:50 -

Try sending it to the front or back, then back again.

 
gone fishin'

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
25th September, 2003 at 09:00:32 -

Right-click the object that gets pasted into the window, go to Scrolling properties and uncheck 'Inactive when far from window'.

 
n/a

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
25th September, 2003 at 16:09:12 -

ok, thanks you three, i'll be trying that/ i'll think i'll also cast an eye over my code to make sure the objects are being destroyed when they're not needed.

 
www.thenatflap.co.uk

Rycon



Registered
  20/09/2002
Points
  996
25th September, 2003 at 16:52:06 -

Also, ive noticed that text causes problems if it goes over active objects, even if its invisable (I think it causes more problems if its invis) if you have any text boxes, even if they are empty, it may be causing problems.

 
We are the music makers, we are the dreamers of dreams...

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
26th September, 2003 at 10:40:24 -

chris branch's solution works a treat. thanks.

 
www.thenatflap.co.uk

Werbad



Registered
  18/09/2002
Points
  235
2nd October, 2003 at 10:20:35 -

This problem sometimes appear because you bring something to front or back when it's not visible on the playfield.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click