103 bug (103.2 too) disapearing sprites.

Bugs will be moved here once resolved.

Post » Fri Sep 21, 2012 9:31 pm

I just tried out the latest Beta version, and the bug is still there and behaves just as before.
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Fri Sep 21, 2012 11:28 pm

I hate to say this, but nothing's changed for me neither.

@Ashley I've found a way to reproduce both the problem I'm having!

Here is the affected CAPX

If you run the game and you go left (A & D to move) you will enter a room, inside there is a big guy, if you stand right bellow him you'll trigger an event (line 503 in the A1 event-sheet) where an object (boss_bomb) is created and most times it will just disappear mid air. ALSO, as it has the bullet behavior, most times the speed will be messed up.

[If you make him spawn the object several times (by going away and back bellow him again) the player will get invisible too (player_animations is the object name)

Both of these bugs started to affect all of my project since 103. Object with bullet behavior sometimes get their speed messed up. And sprites disappear. And the object boss_bomg has both.


here is a VIDEO of what I described above.

I really wanna help anyway I can to solve this, what else could I do?



Sargas2012-09-22 01:31:45
B
42
S
11
G
5
Posts: 446
Reputation: 6,417

Post » Sat Sep 22, 2012 1:02 am

I know this is for 103 (I haven't tested for 104) however, this happened to me quite a few times. I didn't even do any programming in 103 when it happened. My enemy sprites wouldn't spawn at certain times. My environmental assets loaded fine everytime but my enemies would always dissapear.

I would maybe wonder if it had something to do with code that moves the sprites themselves (Platform behavior and bullet behavior for my enemies so far)

Sorry if this information isn't enough but it's all I've got :/
Image
B
57
S
14
G
6
Posts: 493
Reputation: 11,253

Post » Sat Sep 22, 2012 2:54 am

It would still be useful to have results from testing each browser, especially with WebGL enabled and disabled. So far I don't think anyone's provided this. It would help narrow it down to a bug in a specific browser, renderer, or a logic issue in the runtime.Ashley2012-09-22 02:55:02
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Sat Sep 22, 2012 3:16 am

@ashley, I tested explorer and chrome, with WebGl on and off with no differences. Those are the browsers I have at home, tomorrow at work I will have all of them and will test this more extensively. It doesn't have anything to do to image re-sizing either.Sargas2012-09-22 03:16:42
B
42
S
11
G
5
Posts: 446
Reputation: 6,417

Post » Sat Sep 22, 2012 3:39 am

Tried Chrome with webGL on/off, no difference. Explorer was too slow and laggy to really test for me. I'll see if I can get some testing done on FireFox at some point soon.

I have noticed that it seems to only effect things with bullet behavior, like my monsters. Though there are certain monsters it will not effect at all, such as bosses. No idea why.
B
19
S
6
G
5
Posts: 98
Reputation: 4,484

Post » Sat Sep 22, 2012 4:16 am

@supergodjesus I'm not really sure we all have the same problem.

- I have speed problem with all my bullet behaving objects; some move at the setting speed, while some go much faster, this is one issue)

- And the disappearing sprites don't all have a behavior; 1 use the platform behavior, one is a bullet, another is an animated sprite with several frames and animations, and the last is just an idle sprite.
- Of those 4 objects; 3 are created in game, and one is present from the start.
- And my sprites never vanish from the game, they just become invisible, they are still there and working.

- However, all of them are involved in events regarding collisions. And I've often noticed how interacting can make sprites disappear. Although, not all my collision-related objects present any trouble besides those 4.

... And I wonder. How does the collision work? does it have to check every tick or it just triggers on collision? Does the program know which objects are gonna be involved in any collision or does it check for all objects?

And just for the sake of it; I'm going to make a new version of all those 4 objects, and I'm going to remake the events related to them and see what happens.Sargas2012-09-22 04:19:48
B
42
S
11
G
5
Posts: 446
Reputation: 6,417

Post » Sat Sep 22, 2012 5:01 am

Testing Sargas' capx in firefox 15:
WebGL enabled : The boss_bomb disappear mid air and then their moving speed accelerates over time.
FPS drop to around 52.
Webgl Disabled : Same as above.

Chrome 21:
WebGL enabled : Same as above, FPS drop to around 42
WebGL disabled : Same as above

Otherwise the rest of the game plays at a steady 60 FPS in both browsers.

IE9: FPS stays displayed to 60, and animation is smooth.
Though the sprite disappears mid air and accelerates over time like in the previous browser.



The change of speed of the bombs look like the FPS are catching up, a bit like if the code was framerate dependent (even though it isn't, using the bullet behavior on boss_bomb and using dt in quite a few formulas).
Hard to trace the origin of this error in this massive code though. It feels there's some loop/over processing in there.

Tested in r104.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sat Sep 22, 2012 7:55 am

I've done a lot of things that have eased both my problems but haven't fixed them. Reducing the number of objects in my layout diminish the disappearances a lot. Cleaning a lot of "trash" events helped too.
Remaking the objects and their events didn't do much =(,
The biggest improvement came from removing the bullet behavior and instead using a custom movement. However even as those things have made the game more "stable" the bugs are still there... I had to admit that I had my hopes up thinking the bullet behavior was to blame. But it's not. objects moving forwards pixels*dt still get increased speeds sometime (maybe because dts aren't always the same? after all the bullets start to gain speed near the end of the layout, never before. I'm 100% of the time a 60FPS though)
Anyway, as of now, i get the disappearing bug a lot less, though it's still there... bugging me.

@Kyatric You said "It feels there's some loop/over processing in there." You mean I may have redundant events?Sargas2012-09-22 08:35:20
B
42
S
11
G
5
Posts: 446
Reputation: 6,417

Post » Sat Sep 22, 2012 12:33 pm

Here's a simplified capx based on Sargas's:
disappearingSpritesR104.capx
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,000

PreviousNext

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests