[HELP]?????????

Get help using Construct 2

Post » Mon Jan 16, 2012 7:38 pm

I don't know why,but the screen suddenly gets white after some time...
here's the capx

http://dl.dropbox.com/u/8671263/Yo.capx
B
3
G
1
Posts: 5
Reputation: 510

Post » Mon Jan 16, 2012 7:42 pm

after what time? seems to run fine
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Mon Jan 16, 2012 7:49 pm

let it playing some time,sometimes it takes some more time to get white
B
3
G
1
Posts: 5
Reputation: 510

Post » Mon Jan 16, 2012 7:58 pm

its been running for over 5 min now....

....over 10 min...

...over 15 min...

I think I quit that now....sorry palWeishaupt2012-01-16 20:09:36
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Mon Jan 16, 2012 8:08 pm

that's strange...well,thanks for the help anyway
B
3
G
1
Posts: 5
Reputation: 510

Post » Mon Jan 16, 2012 8:20 pm

I saw the white thing your on about. Its to do with spawning the object without exact integers.

Your making things complicated for your self though. Why dont you just make your image a tiled background? Then you can easily make it loop by setting its x every tick to its current x - 10 ect, then if its x < 0 set x to ...

Send me your graphic and i'll show you what i mean.

Or check this topic out: http://www.scirra.com/forum/scrolling-tiled-background-c2_topic44823.html
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Mon Jan 16, 2012 9:49 pm

@smitchell I don't think it's an integer issue 'cause the creator (spawner) sprite isn't place on float position.
My best guess it that sometimes, the collision isn't triggered. And if you miss even just once, no background will be created anymore so... white screen.
So I think you shouldn't use sprite to check for position but just position check it's more reliable.
like that scrollingBullet.capx
Also, using bullet behavior to scroll a background is interesting, never thought about that.
Last edited by Yann on Sun Sep 14, 2014 9:57 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Jan 16, 2012 10:15 pm

Ahhh I see.

@Yann, Yeah the bullet behavior for this method is interesting, But im wondering @figtree; are you using this method for a reason or because you dont know another way?
B
29
S
12
G
7
Posts: 740
Reputation: 7,839


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests