Tiles, Clips, A* Algorithm, Transparent
http://www.freewebs.com/aprzepioski/jommy.html
It is a game I have been working on. I'll call it a game, but it is actually just a small 2D virtual reality right now. There was a lot of things I should have done that would have made the game better so now I am redoing the programming.
When I was talking with somebody else awhile back ago, they told me it would have been better if I programmed the tiles into the game rather than put the tiles together in MS Paint and now I want to, but I am not sure where to start. I was curious if somebody could give me a site to look at or a sample code where I can figure out how to make it so that I can use all of my tiles in the proper order? I have some guesses that I have not tried, but I want to hear some input before doing trying anything since I feel like I wasted my time with what I did before. I really made a lot of mistakes, but this is the second version of this applet game I made so I wont beat myself over it too badly.
I was curious also on how to implement A* algorithm into my game. I learned A* algorithm from http://www.policyalmanac.org/games/aStarTutorial.htm which I enjoyed reading. I understood it (I think), but I was not sure how to divide up the area which is what I think is called nodes. So how would I divide up the area in Java?
Last thing, I also heard that it would have been better for me to make one big image for animation and just have it show a clip. What I did with the game originally was have 16 seperate images for the guy, 4 for each rotation, but when people walk, he disappear for awhile or lags badly. So I was searching online for Graphics2D and clips, mostly used google, but did not find anything good for me. I just want to mask that one big picture and have it change so it is animating.
Yes, those are my three questions for making this 2D game. I am taking it nice and slow, trying to learn. I am learning Java from a book... Learn fromSams Teach Yourself Java 2 in 21 Days by Laura Lemay & Rogers Cadenhead. Java 2 Platform, Standard Edition, v 1.4.2 is what I use so anything above wont work for what I code. I do not want any higher so it can work on a lot of computers. Most of my friends could not handle the 1.5 one so I went down to 1.4 which works for them.
One more thing. I was using an old version of Internet Explorer at my school and the game would not work. It had the right JRE on it, but it did not work. Also Java was on, but it kept saying class not working. I was wondering why this was happening? It was an old version though, not sure what version. I forget and I will check at my school on Moday (when I go back) to see what version it was, but it did not work.
Oh, just want to mention one more thing. I would really like to be able to make my images slightly transparent. I was told that I could do it through PhotoShop, but I have tried that before with a ghost I was making. Everytime I make it like 50% transparent, it shows up as just grey, it does not go through. I was wondering also how I could do this coding wise?
I coded this game very badly so I just want to learn from my mistakes and make it better. I would like to make better games in the future.
By the way, I am sort of bad with terms. They confuse me. So can you explain this like you were explaining this to a 8 year old or refer me to a good tutorial? I would like to code this myself just to say I did it.
Thanks in advance.
Message was edited by:
Aprz

