Making a grid, and click and drop items!!!!

Hey,
I am making a game that allows the user to go into build mode and build a stage. How do i create a build mode that uses a grid on the screen to place items? 2nd question
I also need some help on when the user clicks a button and then clicks on the grid where he/she wants to place the item. how do i do that. say it is a triangle or something. thanks please help!!!!
mdawg

I guess you can do it by using Listeners (MouseListeners). Also you may use a field or object to keep track of the shape the user wants to place on the stage.
Hope it helps,
Calin

Similar Messages

  • If I am browsing on site such as Ebay or any shopping site, and click on an item, when I return to the search page I am once again at the top of the page and have to search down for where I was in the list of items.

    If I am browsing on site such as Ebay or any shopping site and click on an item, when I return to the search page I am once again at the top of the page and have to search down for where I was in the list of items. This is not only on Ebay it is everywhere I search. Firefox goes back to the top of the page . It is annoying to have to figure out exactly where I was if I left the page and then returned. This is a hinderance when using Firefox. I have considered uninstalling it because of the inconvenience of 're-searching' after already doing a search. Firefox used to take me right back to where I was if I left a page, but that feature is not working now. I am not sure how to change this in the settings.

    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Early today Alt, Ctr and Click and drag changed the brush size. Now it makes the move tool work. Anyone have this problem. I think Adobe had an update and put a bug in the program.

    Early today Alt, Ctr and Click and drag changed the brush size. Now it makes the move tool work. Anyone have this problem. I think Adobe had an update and put a bug in the program.

    Which version of photoshop and operating system are you using?
    windows:
    Alt + right click + drag left or right
    mac:
    Control + Option + left click + drag left or right

  • I can't buy apps. I have a account and click and buy account. But when I go to my account in ITunes and want to change my credit to click and buy I have to download ITunes. I did that but still I have the problem to buy apps. I can get free apps.

    Who can help me? I want buy apps but that's not possible. I have an account by iTunes and Click and Buy.
    But when a want to buy one app then they ask me to make an account for credits. I have the account by Click and Buy.
    When I go my account in ITunes and want to change my credit in CLick and Buy I have to download ITunes again.
    I did that but nothing is changes! Stil the problem to buy. I can 'buy' free apps.
    What to do?

    Nothing you can do. Apps are locked to the account that purchased them and you have to log into the account to update them.
    Have yu tried editing you original account to to change the email addres? See:
    Frequently Asked Questions About Apple ID

  • Pops and Clicks and Delays with X-Fi Fatal1ty Platinum in Windows 7 32bit

    Hi, I own an x-fi fatalty platinum sound card and I have installed the beta driver for Windows 7 32bit.
    When doing things in the OS, i get occasional pops and clicks. I know exactly what it comes from, it happens when there are multiple sounds being played simultaneously. If I join a ventrilo server, the little intro sound it makes pops and clicks. If I hold down my talk key, sometimes it will pop and then play the little talk sound, sometimes it won't play the sound at all... and the same is true when I let go of my talk key.
    Virtually everything I do in the OS has this weird pop and click sound associated with it. Playing music, however, doesn't have that problem because an MP3 is a continous stream of audio and counts as a single sound. It's when there are multiple sounds overlapping does it pop/click or fail to produce the sound at all or in its entirety. It's like the x-fi is delayed and isn't able to play the sound fast enough which therefore produces a pop and clicking sound at the beginning of sounds. This is why I purchased an x-fi sound card becaus it eliminated this problem from my onboard sound. Now it's BACK in Windows 7.
    Also, when I play UT2004, by default there's an option called "Use System Driver" checked in the sound options. This makes everything in the game have a slight 0.25 second delay, but it's enough to make it noticeable and annoy me. If I disable "Use System Driver", it fixes the delay but the pops and clicks come back!? I can't win one way or the other.
    Windows XP does not have this problem. I have tried both the stable x-fi driver and the beta driver. I have tried updating my OpenAL software. I'm not sure what to do beyond reinstall Windows 7 and try again... which I really do not look forward to doing.
    If anyone could assist me, or take note of this issue so it could be fixed in later drivers, it would be very much appreciated.
    Thank you,
    -Neil
    Message Edited by Neillithan on 08-2-2009 04:32 [email protected]

    Hello?

  • Mouse click to open and click and drug does't work

    Having problem click to open and click to drag with my mouse.
    I try to many things to change but nothing works.
    And my Mozilla is too slow

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]. Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u '''Use hardware acceleration when available''']. All these settings/options/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme, option or hardware acceleration is causing issues. Disabling/enabling hardware acceleration, and some types of add-ons in normal mode may require a Firefox restart.
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.org/en-US/kb/Options%20window Options]

  • Transparent Background Actual Pixels and Clicking and Dragging Zoom

    So I had to reinstall Photoshop for a number a reasons, and because of this I lost all of my settings.
    There's two settings I lost and don't remember what I did to turn them on.
    1. The Transparent Background is actual pixel size.
    I don't like zooming in and seeing the transparent background not change. I liked it when it was 12x12 pixels per transparent box. What setting do I have check or change to get that back to normal?
    Example: http://puu.sh/9zjjb/1d48b7ebd5.png
    2. Clicking and Dragging Zoom.
    When I now click and drag, I gives me an area I want to zoom in. I don't like this at all. I'm not animating in flash, I'm just drawing. I liked it better when I clicked and dragged up, down, left or right to zoom in on the area I clicked on. What setting is that to enable that?
    Example: http://puu.sh/9zj8O/ec329b1d6f.png
    I'm using Photoshop Cs6.
    If someone can tell me how to fix both of these problems I'm having, that would be grand.

    The way you're seeing it work now (with the checkerboard size remaining the same on the screen no matter what the zoom) is the expected way with the Graphics Processor Advanced settings set to Drawing Mode Normal or Advanced.  If you want it to work the way it did before, go into your Preferences - Performance dialog, click the [Advanced Settings...] button, and choose Basic drawing mode.
    Regarding the Zoom...  Select the Zoom Tool, and look in the Options bar (up near the top of the Photoshop main window).  Change the [ ] Scrubby Zoom checkbox.
    -Noel

  • Slow FTP upload and click-and-draggable DIVs?

    Does anyone know how to set Dreamweaver to only upload files that have been changed?  I imported a site I created before with an old version of Front Page, and it takes a long time to upload because it's not only uploading a bunch of files that have not been changed prior.  Front Page was a lot faster in uploading since it only uploaded changed files.
    Also, does anyone know how to make a DIV click-and-draggable?  When I create a new DIV, I can't seem to move it without altering the underlying HTML.  An imported page allows me to click and move the DIV though.
    Thanks in advance for the help!

    I don't know the answer to your first question, but I can answer the second one.
    Use the menu at the top, and chose Insert -> Layout Objects -> AP Div.  This will put an ap div on the page.  Click on it
    then click on the blue handle on the upper left corner.  Now drag it by the blue handle.  The key is to drag by the handle.
    I don't think this works on anything other than ap divs.

  • Pops and Clicks and sound from movies when a photo is showing.

    I have a show that is about 135 photos and 5 movies. When I view the show on my computer via iDVD everything works and looks fine. After I spend a hour and a half burning the show, after every photo I hear a click, then, the photos after the 99th one, all have parts of the sound of subsequent videos played when they display. Subsequent vids will have the sounds of still other videos playing over them.
    I'm using iDVD 7.0.4 The latest version I believe.
    Thanks,

    Welcome to the forums!
    There are many ways to produce slide shows using iPhoto, iMovie or iDVD and some limit the number of photos you can use (iDVD has a 99 chapter (slide) limitation).
    If what you want is what I want, namely to be able to use high resolution photos (even 300 dpi tiff files), to pan and zoom individual photos, use a variety of transitions, to add and edit music or commentary, place text exactly where you want it, and to end up with a DVD that looks good on both your Mac and a TV - in other words end up with and end result that does not look like an old fashioned slide show from a projector - you may be interested in how I do it. You don't have to do it my way, but the following may be food for thought!
    Firstly you need proper software to assemble the photos, decide on the duration of each, the transitions you want to use, and how to pan and zoom individual photos where required, and add proper titles. For this I use Photo to Movie. You can read about what it can do on their website:
    http://www.lqgraphics.com/software/phototomovie.php
    (Other users here use the alternative FotoMagico: http://www.boinx.com/fotomagico/homevspro/ which you may prefer - I have no experience with it.)
    Neither of these are freeware, but are worth the investment if you are going to do a lot of slide shows. Read about them in detail, then decide which one you feel is best suited to your needs.
    Once you have timed and arranged and manipulated the photos to your liking in Photo to Movie, it exports the file to iMovie 6 as a DV stream. You can add music in Photo to Movie, but I prefer doing this in iMovie where it is easier to edit. You can now further edit the slide show in iMovie just as you would a movie, then send it to iDVD 7, or Toast, for burning.
    You will be pleasantly surprised at how professional the results can be!
    To simply create a slide show in iDVD 8 from images in iPhoto or stored in other places on your hard disk or a connected server, look here:
    http://support.apple.com/kb/HT1089

  • I just got my Ipad2 and have my email accounts set up.  When I go to the folder icon at the top of the page and click on Sent Items they disappear to somewhere.  How do you look at your sent items?

    I just got my Ipad2 and have my email accounts set up.  I have sent messages but when I go to the folder icon at the top right of the page and tap on SENT emails it makes the inbox email on the screen disappear.  How do you check your sent emails?  Thanks for your help.

    You can send over WiFi, but it sounds as if you need to setup your Gmail account, or did you do this already?

  • After I sign on and click on an item, before it comes up I get an addvertizement on my screen.

    After I sign in the first screen that comes up has a list of about 12 items that made the news in the last few days.<br />
    When I click to read the item a add comes up.<br />
    This only happens the first time I sign on.<br />

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • I right click and click and click on the firefox icon but it woun't open. Also, I've tried everythng that forum has suggested with no results that way either.

    The real problem has been happening for a week now. Befefore I would click on firefox and it would take a moment or so to think about opening and before that if I clicked it would open right up. Now no matter how many times I click it won't open. It does seem to think about opening because the little hour glass shows up but after a moment of showing up it goes away as well.

    If this is on a Windows computer, check this Microsoft link;
    '''''[http://support.microsoft.com/mats/Program_Install_and_Uninstall Fix problems that programs cannot be installed or uninstalled]'''''

  • NEED HELP: My computer clicks and clicks and then does other stuff

    I'm hoping someone can help me.
    I know this sounds like my HD is on it's last legs, but something doesn't seem right.
    I have an iMac Intel Core 2 Duo and after tipping the screen back to view the RAM slot, suddenly my computer has clicks.
    During start-up, it will click 6 times, stop, click again and then repeat this sequence until it reaches a grey screen with a file and question mark.
    Now, I've heard this from others, but it takes just one restart and the computer is fine.
    It started a week ago with just a couple clicks as it started up, but now it's every time.
    I have backed up, done disk utility checks, done a SMART test, upgraded to leopard then snow leopard and NOTHING appears to be wrong.
    I asked a local tech and he says that the tipping movement might have just set off my HD to kick it to the last days of it's life, but he NEVER asked me about the tests or offered an alternative solution (like, have you tried this test?...)
    It was just "Ok, that will be about $200 to get a new hard drive in"
    Does anyone have any thoughts or advice?
    Thank you

    Liz,
    Welcome to Apple Discussions.
    It's difficult to tell what is wrong with your computer but I'd suggest running the Apple Hardware Test, follow the link and use the instructions in the letter then report back what you found.
    Regards,
    Roger

  • Calendar error message and click and drag issues

    Hi, I'm new, very new. Never had a mac product in my life. Just got a macbook air (OS X 10.9.5) and was about to update to Yosemite when I read all the virulent anti update stuff (599 giving it one star versus 579 giving it more than one) on the app store Yosemite page. Should I take this seriously? But most importantly, will it resolve the issue of the error message in relation to the google calendar (The URL https://calendar.google.com/calendar/dav/xxxx/user/ encountered HTTP error 404), and the sudden loss of the ability to be able to pick up and drag documents which are features of my current experience, both of which issues I have read about on other forums with no definitive solutions.

    Hi Kelly,
    I searched our server logs and didn't find any errors associated with your form in the past 30 days. Maybe I didn't use the right keywords since I don't have the error message yet. I am going to do a few test submissions to see if I will encounter any error. The test data will have the name "test test" so you can easily identify them and delete them later. Is that okay to you? I will start my testing once I have your permission.
    Thanks,
    Eman Fu
    Senior Computer Scientist
    Adobe Systems Incorporated

  • SP Designer Workflow: How to Get Full URL Path to List Item and inserted same list ITem URL in another list

    Hi,
    I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item  column entry url will show the parent item information.
    Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make  item url link through String builder in mail body with using current id and predefine link,but
    when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
    item link dispaly information.
    So I opened SharePoint Designer and start creating the workflow associated to the list.
    As there is some Field from source related to current item URL I start using it
    Encoded Absolute URL – this one should be the one to use
    Server Relative URL
    URL Path
    Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
    Encoded Absolute URL
    http://wfe1/Lists/bpf/1_.000
    Server Relative URL
    /Lists/bpf/1_.000
    URL Path
    /Lists/bpf/1_.000
    As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCS

    Unfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List.   I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to.  One problem is the workflow is initiating
    twice.   I'm thinking I should have just created the workflow as a a "List Workflow."  
    I am going to try "Association Columns" -- that may work.  Anyone have other suggestions?

Maybe you are looking for