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 SnakePlissken

So I have been looking into this for about an hour now and not finding any way to accomplish what I am trying to do.

I am trying to have a smaller background layer popup to play a game within the game. Is there way to move a BackgroundMap layer to a different x and y plane?

If not how else would I accomplish this? Also how well does impact work if I try to put another canvas on top of it because that was another thought I had as well.

Thanks,

Snake

1 decade ago by Arantor

Doing something like that is complicated, and there's not an easy way of doing it, though it certainly has been done before, e.g. in http://impactjs.com/forums/games/memory-quest

I don't know off hand how it was done, but looking at the code might suggest something.

Not sure putting another canvas on top is going to work very well at all, because you won't be able to reference it directly without some clever juggling underneath (and you won't be able to use transparency on it either)

1 decade ago by SnakePlissken

Ya for now I am just going to try creating and deleting entities on top of the maps and use images. However running into some collision problems. Addressing this is another post. Thanks for the game reference looks to be very well done.
Page 1 of 1
« first « previous next › last »