Making a game with 3 layers of tiles; help

Hi guys,
I am busy making a game which will have 3 layers of tiles. Firstly, the terrain, then the buildings and finally the player (sprite).
I was thinking of using JLayeredPane to achieve this. But, I was also thinking of just drawing all the layers onto one bufferedimage and then just showing that everytime? What would you say?

Thanks, i am going to do that. question now is one of transparency.
How do i make sure that Java treats my png properly? I have tried testing whether it treats the transparent pixels properly and it doesn't. How do i work around this?

Similar Messages

  • Help making a Game with AS3

    Hey Guys (and Gals)
    I’m hoping one of you can help me out with a game I am making in flash.
    I’ve been following through this tutorial online (http://as3gametuts.com/2011/11/11/platformer-1/) , and it seems to have missed some fundamental parts that I desperately need, and I am really struggling to work out how to do it.. I’ve vigorously Googled, but to no avail..
    Basically, I need to animate the enemy sprite, but whenever I add any kind of animation to the symbol, it becomes non-collidable; the player just passes right through it!
    I also need to work out a way to remove enemy sprites from the previous level, as they seem to be passing forward to the next level, and adding a ‘removeself’ function doesn’t seem to do anything. I then need to add a new, separate list of enemies for the next level..
    I want to point out that I am EXTREMELY novice at flash (and coding in general), so if you could dumb-down your answers that would be really helpful.
    Here is the source code: https://app.box.com/s/d6oibaw63w12e2kvcmsx
    Thanks in advance!

    What do you mean by animating enemy? If you are trying to add some animation to it on the main timeline - perhaps something what Amy sensed happens. The thing is that manually created animations on timeline sometimes are very difficult to fit into conventional AS3 functionality.
    I suggest you try to animate enemy on its own timeline (not op the main timeline). I guess programmatic animation is too much to attempt for your level.

  • Game with layers

    Hi, I'm trying to develop a little game. It's a simple 3/4
    view (top-down view isometric) car game (quite classic I know). But
    what I'm looking for is how to add different layers in my game. I
    mean when the car is under a tree, then the car should disappear
    (now it runs over the tree), same with a tunnel, the car should not
    be seen.
    How to manage this ? I only need 2 layers, the game layer
    (street, grass) and the top layer (trees, tunnels,...)
    Thanks for help.

    Car is on which layer?
    Just shift your layers and check if the car is going under
    the tree...

  • Powerbook dead? Sleeping? Playing games with me? Please help!

    Please advise me about what to do with my 15" aluminum G4 1.25 GHz Powerbook. Often it won't start at all, and if it does, soon it freezes solid (screen still up, but no response to the trackpad or the keyboard) and I have to force it to quit or remove the battery. Meanwhile the bottom of the case quickly feels very, very hot, even if the screen is (sometimes) blank. Yesterday I got it to run long enough to run the hardware test, which passed the logic board and other components -- before the computer froze up again. A Mac-certified tech looked at it and said he thought it needed a new logic board; but would it have passed the hardware test if that were the case? I've tried resetting PRAM, removing RAM, the airport card, etc., and I just can't see any consistent result, except that whatever I do, the laptop will soon freeze up. I've read about the famous "narcolepsy" issue, but if the laptop is going into emergency sleep mode, would the screen still be working (if frozen)? I really am just about ready to call it quits and sell this for parts. I'd be grateful for advice. Thanks.

    BGregg and Old imac, thanks for your comments. I tried to reply once to this but my post got lost in the ether, I guess. I believe my hard disk is okay and since I wiped it and reinstalled Leopard, that can't be the problem, I think (not much on it now except the OS, I mean).
    But good news!!! I did the following things and the laptop has now been running non stop for 4 hours! Hooray! (1) removed ram from upper bank and only have ram now in lower bank (1 gig); (2) have not touched the track pad at all -- am using an external mouse. Have touched the space bar a few times to wake it up from sleep; (3) installed and am running Temperature Monitor. Now this is neat: when I first installed it, it showed temperatures around the CPU mounting up to 140 - 145 degrees F !!! Since then, however, it has been running much, MUCH cooler, around 100 F. Could the Temperature Monitor program be responsible for this cooler-running machine? Anyway, I don't know which of these three things I changed is responsible for the machine continuing to run properly for such a long time (compared to its recent history). Which should I try changing first? RAM or using the track pad? I guess it doesn't make much difference. Suggestions?

  • Can't save TGA and GIF files with layers

    Hi,
    I'm using Photoshop CS5 for Mac, and when I try to save files as TGA or GIF, the Layers option is not available and the result is a flattened, single layer.
    • Files I am working with are 8bit RGB.
    • Photoshop is set to 32bit, not 64bit.
    • There are no extra channels other than RGB.
    • Switching files to indexed color doesn't help because it asks to merge all layers.
    • I can open Gif files containing layers, but I can't then Save or Save As with layers.
    All help appreciated, and thanks in advance.
    Below is the save dialog box as it appears when i try to save a Gif or TGA.

    GIF does not support layers.
    Animated GIF files may open as layers into Photoshop. You need to save them again as an animated GIF file after manipulating them in the animation panel. The 'Save for Web' function would be most ideal.

  • Making Java Game Help ^^

    We're making a game for our Java course and we're thinking of making something like Flash Flash Revolution, only in Java. Is this anywhere near possible? Or should we just make a tile-based game like Spyhunter...?
    I'd really appreciate some help or comments. ^^

    This can 100% definetly be done.
    The only real hard part is getting the arrows to perfectly sync up with the BPM of the music. Your going to have to write a routine that can change the scroll speed and timing of the arrows based on varying BPM values.
    There are some free programs out there you can download that will give you the BPM of songs you feed it. The non free tools allow you to get a higher and more accurate BPM precision.
    Of course if you simple make the game only have 1 song, and you already know the exact BPM, then you can code the initial arrow movement speed for that one song and pretty much the rest of the game is a cake walk to program.

  • If i reset my ipad can i install paye games for free if i sign back into my apple ID. Please i need help because i need to update my games but i need to put in this billing thing and i want to get rid of it so then i cant buy games with my credit card

    If i reset my ipad can i install paye games for free if i sign back into my apple ID. Please i need help because i need to update my games but i need to put in this billing thing and i want to get rid of it so then i cant buy games with my credit card

    Hello,
    As frustrating as it seems, your best to post any frustrations about the iPhone in the  iPhone discussion here:
    https://discussions.apple.com/community/iphone/using_iphone
    As this discussion is for iBook laptops.
    Best of Luck.

  • Help with Layers

    Hi,
    I need some help with Layers? Here is a link to a simple page
    layout with 1 blue table, and 1 small green box. Both have a
    capital "I" on the left. The table was aligned to "center" in DW.
    http://sfrcreations.com/tbe.html
    When I built this page at home, on my tiny 12" monitor, the
    letters lined up over each other. When I look at it on larger
    monitors, they no longer line up. I did have a suspicion that this
    would happen due to my lack of knowledge of layers. So, my question
    is. How does one, with a centered table, get a layer to always
    appear where the designer wants it to no matter what the browser
    size is. For instance if you move the browser to different sizes,
    the blue box follows, but the layer stays where it is?
    Are the menus on this forum site and the Adobe site in
    general done by using layers? I ask, because if so, this site is
    centered, and the layers seem to adjust to any browser size.
    By the way, I am using Dreamweaver 8.
    Thanks for any help!

    8). I'm a shameless thief.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Nadia : **AdobeCommunityExpert**"
    <[email protected]> wrote
    in message news:[email protected]...
    > Took the words right out of my mouth - thanks Murray ;-)
    >
    > Nadia
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> The wrapper div is relatively positioned and auto
    centering with a fixed
    >> width. This has two consequences. Being auto
    centering is obvious. The
    >> relative positioning is not.
    >>
    >> When an element is relatively positioned, it takes
    its position from its
    >> location in the flow of the code. Since the wrapper
    is the first thing
    >> on the page (wrapping everything else) its position
    will be at the top of
    >> the page (unless you would apply top page margins,
    or top margins on the
    >> wrapper), and centered (since relatively positioned
    elements *can* move,
    >> unlike absolutely positioned elements). Now - since
    it is relatively
    >> positioned *IT* will serve as the point of reference
    for all internal
    >> absolutely positioned elements. That's because the
    definition of
    >> absolute positioning is that its position is
    calculated from the location
    >> of its closest positioned ancestore.
    >>
    >> Thus, as the relatively positioned wrapper 'floats'
    to the center of each
    >> different browser viewport, all internal absolutely
    positioned elements
    >> are forced to 'float' along with it (I use 'float'
    in quotes to indicate
    >> that I am NOT talking about CSS floats, which are
    very different
    >> creatures than what I am describing).
    >>
    >> That's why it works.
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "engmix" <[email protected]> wrote
    in message
    >> news:[email protected]...
    >>> Hi Nadia,
    >>> Could you please explain how you designed this
    layout with some degree
    >>> of
    >>> detail. I could easily cut and paste your
    layout, but I really want to
    >>> understand how you went about it. What did you
    start with and so on.
    >>> Hope this
    >>> isn't to much to ask?
    >>>
    >>> Thanks again!
    >>>
    >>
    >>
    >
    >

  • We like to play games with Spigo. But the games do'nt come totaly on the PC. I think they are 75 %. Can you help us? r.sissing@planet.nl

    # Question
    We like to play games with Spigo. But the games do'nt come totaly on the PC. I think they are 75 %. Can you help us? [email protected]

    Do you mean that the game doesn't load or that you do not see the complete page?
    Reset the page zoom on pages that cause problems: <b>Beeld > Zoomen > Herinitialiseren</b> (Ctrl+0 (zero))
    * [[Page Zoom]]
    * [[Text Zoom]]

  • I lost my iphone4 and replaced it with a 4s. It's been a year since my last sync. Do I set up my phone as "new" or "restore from backup?" Im hoping game center will automatically have a current record of game data...please help or advise.thx

    I lost my iphone4 and replaced it with a 4s. It's been a year since my last sync. Do I set up my phone as "new" or "restore from backup?" Im hoping game center will automatically have a current record of game data...please help or advise.thx

    Restore from backup.

  • I am downloading a 6.4GB game with Safari. Download starts very well, 850KB/s but systematically after 10 or 15mn speed goes down until download stops. Can somebody help please?

    I am downloading a 6.4GB game with Safari. Download starts very well, 850KB/s but systematically after 10 or 15mn speed goes down until download stops. Can somebody help please?

    systematically after 10 or 15mn speed goes down until download stops
    Check with your iSP. There may be a limit to files sizes.

  • Making star fields: Transparent layers for stars made with noise?

    I'm trying to do what David Bogie described here:
    David Bogie, "How can you create a flying through space effect?" #4, 16 Jul 2008 7:28 am. But I'm a real newbie in AE (I have 6.0 and have owned it for years but only used it about twice or so - I do everything else in PPro), so I'm getting stumped on basics. What kind of layer should I do this with? The choices in 6.0 are Text, Solid, Light, Camera, Null Object, and Adjustment Layer. I tried a solid black layer, but it is indeed very solid - when I make a second one, the first is never seen again. Null Object and Adjustment layers don't seem to respond when I put the noise and threshold effect pair on them, so they are apparently the wrong type for this. There seems to be no such thing as a Transparent layer type, or is there?
    A secondary question (sorry to put two questions in one post, but it's probably simple) is about the threshold effect. It seems that the result is either pure white or pure black - I started with noise of varying lightnesses and even color, but when I use threshold to thin it out (to make it more like stars), the result is only bright white dots and nothing else, no matter what threshold level I choose. Am I missing something simple?

    Sorry, Thomas, I thought you were the one who was frustrated - it sounded like you felt I needed to either upgrade or study the basics on my own before attempting something like this. And I wasn't belittling older versions; I thought you were. Don't ya just hate that lack of voice inflection and facial expressions that you get in online communication...! Okay, onward.
    I read about the Pan Behind Tool before (if you start searching for "anchor point" and "position" it comes right up), but then, as now, I don't understand how it works with layers that have already been moved out of whack. And since my last post I have done way more to my comp: To try to reduce the afore-mentioned problem while still getting a variety of star patterns in my layers, I made all the positions 360x240 (which is the same as what I left the anchor points at) and introduced rotation instead - that didn't solve it, but it looked a little better. Then I decided that the time before the earth appeared was kinda boring, so I learned about parenting, made two of the star layers children of the third one, and bezier'ed some position and rotation action to the parent, so that it will look like the viewer's ship is changing direction as it's flying, and then when it steadies its heading, earth begins to appear. It's not bad - the flying motion takes your attention off the layer discrepancy. But when I showed it to my husband, who had conceived the original idea of this sort of video for the song intro, he instantly noticed the relative motion without me mentioning it - he didn't know what to call it, but commented that my stars seemed to be moving around. Yup! I am now convinced that it's not just anchor points, but the fact that the scale is different on the three layers. I even tried adjusting the rates of change of the scale to be the same on all layers (2X over the course of a period of time - one is 100->200, another is 60->120, and the third is 50->100), but they still move funny. Oh, well. So I finally just rid of the keyframes on the two child tracks altogether and let the parent do all the enlarging. I don't know how that differs from having each layer enlarge the same ratio over the same course of time, but somehow it is - the funny movement is gone. Unfortunately that eliminated the final thing that made the layers different - the current result could have been achieved simply with three layers in Photoshop. I would have liked to have "closer" layers enlarging faster than "farther" ones (that's the reason for multiple layers in the first place), but if they won't do so from the center point, it's just too weird. I have spent a whole day working on 18 seconds of video - I need to move on to the rest of my project.
    Okay, now to address Andrew's post, which came in when this post was almost ready to send (I learned my lesson and checked before actually sending!). That's my kind of tutorial! In one sitting he teaches several techniques, effects, tools, unnumerable keyboard shortcuts, etc. Often when I watch a tutorial video, I learn just one thing in ten minutes, but this guy packs in the information. I will have to be careful to sort out what I can do and what I can't - I have 6.0 Standard, and he has Pro of some newer version (I don't know how new, but he was able to make great-looking stars in seconds using fractal noise, an effect I don't seem to have). As for using his idea directly, it had occurred to me that zooming in closer than I am would be cool, but I don't have any images for that. Do you know where one would get satellite images like that? Google Earth is copyrighted material, even though I assume the images it uses are not.
    Wow, I learned a lot today - thanks to both of you for pointing me in good directions. AE is not as intimidating as it was yesterday! :-)

  • Export Image Sequence with Layers Intact

    I don't really care if the final format is PSD, TIF, PNG...something else? All I need to be able to do is export my main timeline so that each frame = 1 file, and whatever was on that frame contains the equivalent hierarchy of object frames and child objects that appear for that frame - all with the layers intact in the final file. Seems like it shouldn't actually be that complicated a procedure should it?
    I need to be able to create/sketch animatics in Flash to utilize all its unique features like nesting of timelines, then when finished export it for other artists to then take each frame and work with the elements in both photoshop and after effects, cleaning it up with nicer brushes, and creating additional animation and camerawork. Basically Flash is a great way to animate/sketch content and figure out what you're doing, but the others are better for polishing and making it look nice.
    Can anyone help with this? If it doesn't exist is it something someone could write a plug-in for?
    http://i.imgur.com/q7uyl.jpg
    http://i.imgur.com/FgaFe.jpg
    http://i.imgur.com/GaAAh.jpg

    Check AEnhancers.com! There is a script somewhere there that sets up your million render outputs and enumerates them sequentially.
    Mylenium

  • Making SWF games software choose

    Hello, I am new to making flash games & apps but the thing I need to know is which Adobe Flash Software should I use?
    Adobe Flash Professional
    Adobe Flex
    Adobe Flash Builder
    Adobe InDesign
    Adobe Flash Catalyst
    (dunno if that is all)
    So help me choose, cost doesn't matter.
    Requirements:
    Easy-to-use
    Creating .swf games, applications and documents
    Many features
    Compatible with Windows Vista Home Premium 32-bit
                    and  Windows 7 Home Premium 64-bit

    "Easy-to-use" rules out InDesign right from the start. Only yesterday I found out a simple paragraph style has no less than 180 parameters to play with.
    (You might also don't want to make a 150 MB tetris clone: CS5 creates "enormous" SWF files - help!  and  File size of .swf files exported from Indesign CS5 )

  • Photoshop CS3 shuts down after opening a PSD file with layers

    Hello, I have met a problem with Photoshop CS3 (Windows XP SP2, no network printer) - after opening a PSD file with layers (saved with CS2) Photoshop shuts down. No error message.
    Can some of you help me? (The only software that I have installed after Creative Suite CS3 is Corel X4. I have installed no upgrades of CS3.)

    > I have installed no upgrades of CS3
    You should!
    Even if it doesn't help here you should.

Maybe you are looking for