Log In  


Cart #34047 | 2016-12-23 | Code ▽ | Embed ▽ | No License


Cart #33939 | 2016-12-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

4


I like this idea!

I can't get the screen with the river to work correctly, though. When I push the last bridge piece into the water and then try to walk across it, that last piece gets moved on top of the previous bridge segment and I can't cross:

I haven't checked your code, but it looks like maybe only certain parts of the bridge pieces are collideable? Maybe you could change this so that the entire segment is collideable so they're easier to push, and then once it hits the water the segment changes state to become a static, non-blocking object. If you want a code example to show what I mean, let me know.


It does work when you push the mirrored piece in correctly.

My problem is that I only let the pieces become static when the game detects that both bridges are built, which is kinda stupid in retrospect. I can just do that when the tiles are built individually.


Cart #34047 | 2016-12-23 | Code ▽ | Embed ▽ | No License


@eis: a commonly used "etiquette" here would be to edit your first post with your updated cart, so that people can play the latest version right from the top post (the first, bigger one). also you could name them with a less confusing revision number (mirrored 1.0, mirrored 1.1 etc). lastly I think you can remove obsolete carts by simply deleting their tags from the thread (maybe only keep major revisions and ditch those that only differ by still having bugs)

nice game mechanic you have there, btw :)


@ultrabrite Did that, thanks!


Nice, I really like it and can't wait to see where it goes! So far I'm at the level with 2 snowmen. The bridges level was a bit of a challenge due to the wonky hit detection, but I got it after 1 level restart.


I'm also stuck at the level with two snowmen. I guess we have to put the gems in a particular order (according to the colors), but I can't figure out this order...


The snowmen are the key. I should probably make this more obvious.

I will also improve the hit detection for pushable objects!



[Please log in to post a comment]