Hello im new to boards but i have 1 question,it is about a project im working on,the project is a RPG game,im not yet doing sidescrolling or anything yet,its pretty much old school style where u click a button and it pops to a background with the character alrdy on it,but im having problems inserting the background and the character into the buttonlistener does anyone have any suggestions for this?
Ok im writing this game in Java…just regular old java nothing special,but i dont know if what im doing if im allowed to do in java,but here is a sample of what im trying to do…
private class ContListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
Graphics page;
int size;
woods=getImage(getDocumentBase(),“woods.gif”);
chars=getImage(getDocumentBase(),“chars.gif”);
setSize(APPLET_WIDTH,APPLET_HEIGHT);
page.drawImage(woods,0,0,size,size,this);
page.drawImage(chars,420,500,size/15,size/10,this);
//drawPictures(APPLET_WIDTH,page);
}
}
anyway that is the button in my game where im trying to go from a despription page of character,to a picture background with a guy pasted onto the background,is this the way i should go about it? or is this not gonna work? if so which way should i go about doing this.