Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by MikeH

Hi all, I'm brand new to using impact, it all looks great and all the games I've seen using it look great! I'm having trouble replicating that though.

The first problem I'm having is "tearing" when an entity moves. My maps are pretty simple, the size of my entities are 36x64 and I have a repeating white 100x100 background. When an entity jumps (it's fastest movement) there's noticable tearing that I haven't seen in other games made with impact.

The second problem is that when the main character jumps, the enemies don't stay on the ground. As the main player falls back to the ground, the enemies are left floating in mid-air and don't come back to the ground until a fraction of a second after the player.

To me, both of these seem drawing related. I've tried running the same in 240x160 and 480x320, neither is any better than the other.

Any ideas? I can post the code online if that would help.

Thanks,

Mike

1 decade ago by Alex

Hi,

By tearing you mean flickering? I didn't get that.

Quote from MikeH
The second problem is that when the main character jumps, the enemies don't stay on the ground [...] the enemies are left floating in mid-air and don't come back to the ground until a fraction of a second after the player.


I didn't get this as well. Enemies jump with you? Are they flying entities? Are they ground entities? If ground, why would they leave the ground at all when you jump? Why are they in air?

Could you post a link to your baked game? Would help see the issues :)

1 decade ago by MikeH

Here's a link to what I've got running. It's not a game yet, I've been working on concept and level design so this is just my test run to get used to impact.

[pm me for link]

Green block is the "player". On the raised area to the right there's a zombie that wanders back and forth. To see the effect I mean, wait at the starting point until you see the zombie appear, then jump. You'll see the zombie overlap the platform below it as you go up, and then appear to float in the air as you go down. The zombie isn't actually moving up or down according to impact when I log it's x and y coords, but when it's drawn on screen it appears to be.

1 decade ago by MikeH

And I should have said, arrow keys to move, x to jump :)

1 decade ago by Alex

Checked it out, pretty odd. Try turn off you white background, is it same?

P.S. - You should bake your game so people don't easily steal the code, http://impactjs.com/documentation/baking

1 decade ago by MikeH

Thanks for taking a look :)

Yep, if I turn off the background it looks pretty much the same.

When I put the game public I'll bake it, thanks for pointing me in that direction! At the moment though there's nothing in there that actually makes a playable game or isn't pretty much copy and pasted from examples ;)

1 decade ago by Hareesun

Mike, just so you know, these forums are public. I'd recommend editing that post or removing the link :P
Page 1 of 1
« first « previous next › last »