I did some testing on the runme program you mentioned in your other topic.
I t seems the disapearing shapes occur when two equal ememies follow each other. I changed the program, so that only
plane 2 is selected.. Then you get many diappearing shapes. because when a collision occurs, that type of enemy is hidden,
If there two ennemies are started, and there is a collision, both are hidden. Perhaps you can block the second one, so that
only different enemies can follow each other?
Shape not visible
Hi.
I have problem with my 2D scroller.
When moving shapes with Shape.Move it seems like time to time some of the shapes is not visible. I can see it coming rom right side and disappearin a round the middle.
I dont think its up to my code logic, due 95% of time shapes moves a cross the screen as should. This happens just time to time. I can trace movement with proper x & y variables. Its just that the shape stays invisible.
I have delay in loop that makes game runninf 25 fps, so it cant be speed issue.
2 answers
Sort by: Most helpful
-
WhTurner 1,611 Reputation points
2022-02-06T13:25:34.79+00:00 -
Kristian Virtanen 126 Reputation points
2022-02-07T14:38:58.773+00:00 Oh, now i feel silly here.
Thanks for your efforts.
I have moved this one to C#, due im still using sb graphics for the sake of sb. Same problem occured there too. Thanks : goto Thanks