1 decade ago by dwarapalaka
I just started playing with this and had a couple of questions. I've scanned through the forms and the documentation but couldn't find an answer.
1. How do I create a background for my game? Basically, I just want a large image to fill the canvas and stay there all the time, with characters rendered on top. Right now, I'm using a bunch of images and drawing them. But the player doesn't show unless I call "this.parent()" last in the main draw method, in which case, all the background images don't show.
2. Is there an easy way to create a button object in Impact? I noticed none of the demos had any on-screen buttons that could be clicked and couldn't find anything in the docs about this. Ideally I would like to have hover and click effects also, but for now, I'll settle for just having a button that the player can click.
Thanks!
DP
1. How do I create a background for my game? Basically, I just want a large image to fill the canvas and stay there all the time, with characters rendered on top. Right now, I'm using a bunch of images and drawing them. But the player doesn't show unless I call "this.parent()" last in the main draw method, in which case, all the background images don't show.
2. Is there an easy way to create a button object in Impact? I noticed none of the demos had any on-screen buttons that could be clicked and couldn't find anything in the docs about this. Ideally I would like to have hover and click effects also, but for now, I'll settle for just having a button that the player can click.
Thanks!
DP