Creating a vertical scrolling game.

I'm in a java class in high school and for our final we must create a video game. My game is a vert. scrolling plane fighting game like the old 1942 arcade game. I need some help w/ how to make the screen scroll and how to make the enemy planes appear from the top of the screen and move towards the bottom. Any help would be nice.

You do not use scroll pane for that. Get a subimage of a long long image and incrementally call repaint(). That's all you should do. Prepare a special image where some length of the top-part is same as some length of the bottom-part. Then, incremental sub-image getting should work by wrapping around the long image. Use BufferedImage instead of Image. Or, this one uses multiple images drawing by incrementally changing their coords on the game panel: http://hp.vector.co.jp/authors/VA011187/java/poc98.html

Similar Messages

  • URGENT! How do I create a vertical scroll button in Flash CS6 for online banners?

    Hi, I am creating Flash online banners and the disclaimer needs to open as a vertical scroll banner once the mouse touches the 'x close' button where the words 'Disclaimer' is stated.
    How do I create a vertical scroll button including text?
    I am using Flash CS6.

    Hi Babaa,
    sry for the lateness of my reply.
    I would simply make a button that when clicked, displays a layer containing your disclaimer text. The discliamer text would be inside a Movie Clip (MC) for ease of controlling.
    the MC then contains a text field which has a scrollable field. as the user scrolls through you can then display a "close" button to close out the disclaimer MC.
    If you still need the work done feel free to email or PM me here and we can discuss the job further.
    Regards
    Russ

  • HELP! How do I create a vertical scroll button for online banners?

    Hi, I am creating Flash online banners and the disclaimer needs to open as a vertical scroll banner once the mouse touches the 'x close' button where the words 'Disclaimer' is stated.
    How do I create a vertical scroll button including text?
    I am using Flash CS6.

    Hi Babaa,
    sry for the lateness of my reply.
    I would simply make a button that when clicked, displays a layer containing your disclaimer text. The discliamer text would be inside a Movie Clip (MC) for ease of controlling.
    the MC then contains a text field which has a scrollable field. as the user scrolls through you can then display a "close" button to close out the disclaimer MC.
    If you still need the work done feel free to email or PM me here and we can discuss the job further.
    Regards
    Russ

  • How can I create a vertical scroll for text in a 'div' in CSS Dreamweaver?

    Hi there,
    I need to flow a lot of text into a CSS div. However, I don't want a big long page as it will look ugly and be inconsistent with the other pages in the site.
    I need to be able to put in a vertical scroll directly in the div containing the text (not on the whole page) so the user can scroll the text down without moving down the whole page.
    Is there a way for me to do this?
    I'm a beginner to CSS so a step by step for dummies approach would be most helpful.
    Thanks in advance for any help!

    use the overflow:scroll property:
    http://www.w3schools.com/Css/pr_pos_overflow.asp

  • RH7 - Viewing WebHelp in IE9 creates two vertical scroll bars

    An extra frameset appears to be in the main htm page (attached) that is generated by RoboHelp.  Here’s the frameset:
    <frameset cols="100%,*" frameborder=no border=0>
      <frame src="whnjs.htm">
      <frame src="whskin_blank.htm" noresize>
    </frameset>
    When viewing the help in a Telerik RadHtmlPlaceholder control in Internet Explorer 9, this frameset causes our help content to appear twice.  The content is stacked on top of each other, and a vertical scroll bar is added.
    Manually removing this frameset resolves the issue.
    Has anyone else seen this issue, and if so, are there any RH options for resolving it?

    While I was using RoboHelp 7, I worked around the frameset problem by deleting the following code from the main pag in my help system, as suggested in the forum:
    <frameset cols="100%,*" frameborder=no border=0>
      <frame src="whnjs.htm">
      <frame src="whskin_blank.htm" noresize>
    </frameset>
    When I did so after generating help in RoboHelp 7, I found that the extra frameset disappeared from IE9. Later I upgraded to RoboHelp 9 for an automated solution to the extra frameset in IE9. But I find that the problem persists. On WebHelp pages with more than a single screenful of text, the double frameset appears, and the content for the page one is viewing is stacked on top of the Welcome page, much as described by TechComm2 at the beginning of this thread. In IE9, with content generated in RoboHelp 9, an extra frameset appears whether I delete the abovementioned code or leave it in.
    My project is used as contextual help. Our developers have placed extra security on the project so that a user cannot view the help without first logging in to the application it describes. Because of this, I am asking our developers to help me look for a solution to extra framesets. But I did want to come back to this forum with an update and ask for additional comments from you-all as well.
    Thank you.
    Tom

  • Text editing window expands instead of creating vertical scroll bar

    In the last few days, I have noticed that when I try to edit or post to Wordpress.com the vertical scroll bar no longer appears on the text editing box. Instead the box just gets progressively larger which makes it very difficult to get to other items on the WordPress editing screen, such as tags and categories. This problem seems to have arisen during the v31.0 auto-upgrade. Is anybody else having this issue and what steps can I take to solve it? (FYI, I tried modifying the setting described in another response about a similar issue using the about:config screen, with no success.)

    I don't know whether your dashboard has the "Visual" and "Text" buttons, but I believe the Visual uses CKEditor or another WYSIWYG editor and the Text editor might be a simpler design. Are both affected?
    I searched around to see whether I could find Wordpress.com support threads or other stories about it and I can't. So I'll fall back on some general suggestions:
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * (menu bar) Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove WordPress.com cookies without affecting other sites.
    Then try reloading the page. Does that help?
    To rule out extensions as a possible culprit, could you try the site in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions, some advanced features, and some custom settings. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * (menu bar) Help menu > Restart with Add-ons Disabled
    Note: Flash and other plugins still run
    After Firefox closes, a small dialog should appear: click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • Creating JScrollPane with vertical scroll only...

    Anyone got any idea how to use a JScrollPane to perform vertical scrolling only?
    The components should be stacked vertically, as wide as the scrollpane and as high as they need to be.
    Is it only possible by adding a ComponentListener to the JScrollPane (or the JViewPort) and setting the maximum width of the components to the width of the viewport?
    Incidentally, anyone know how a JLabel (or any text component) calculates its preferred size when it can wrap the text contained? Ie, how do you get the preferred height for a specified width?

    Doh - implement Scrollable to return true for getScrollableTracksViewportWidth()!

  • Removing the Vertical scroll bar from the content area.

    Hello,
    Is there a way to remove the vertical scroll bar from the content area?
    I am trying to create a new light portal frame work.
    Everything works fine except that I see two vertical scroll bars, one from the content area and another from the page(frame).
    Thanks in advance.
    -Sudheer

    Hi
    There are a couple of ways in which to achieve this
    1) Try and make the content flat. What I mean by this is that the content area (when using the standard light framework) doesn't contain an iframe, meaning that the iview defined on the page has "EMBEDDED" isolation mode. This should mean that you only have one scrollbar (if the content extends past the size of the browser)
    2) If you need to make the iview URL isolation, then try and get the domain of the content to be of a similar domain to your portal server, i.e. your portal is portal.company.com and the content is content.company.com. In this way you can make the pages expand.
    NOTE: One thing to note is that when using URL isolation iviews doesn't allow the automatic expanding of the iframe content. This is because the standard javascript doesn't allow this. Therefore you may have to write your own javascript function (or content area page) to do this
    I hope this helps
    Darrell

  • Bottom right corner resize controls trump vertical scroll button if set to appear in the bottom corner

    My bottom right corner square of the Firefox window normally sits below the bottom of the vertical scroll bar and right of the horizontal scroll bar if one exists. The square is used to click and drag to resize the window's right and bottom boundaries.
    At issue is when a web site places its vertical scroll down-arrow button in the bottom right corner. I cannot access the down-arrow button with my mouse to cause the page to scroll down a few lines at a time because when I point the mouse there, I get the resize controls instead. Even though the down-arrow button is plainly visible on the screen, the resize controls take charge and I cannot use the scroll control.
    Two example web sites display their down-arrow control at the very bottom of the window; TIME.com and GMAIL.com. I have also viewed two PDF documents in the browser, and they too, have a vertical scroll bar all the way to the bottom, and I cannot use that down-arrow button because instead I get the northwest-southeast click-to-resize cursor instead of the mouse pointer when I attempt to use that button for scrolling.
    Someone on the Google Help forum was not able to replicate that issue, showing me screenshots of his lower right corner mouse behavior. He does not have the resize control covering access to the scroll bar.
    I am using the latest Firefox, I have reset Firefox, thus dumping all of my add-ons and custom settings, and have only put back AdBlock Plus and Cookie Monster. And Troubleshooter, when I asked a similar question.
    I am running Windows XP, on its last days of support. This computer is not capable of running anything newer, unless I run with Linux.
    Going to TIME.com, its vertical scroll is in the bottom corner and I get the resize control arrows instead of the mouse pointer when I point to the down-button. If I disable page styles in the View menu, I get a useful output that sets the end of the vertical scroll above the bottom corner. So somebody's idea of styling the page (CSS) creates this issue for me.
    Going to Gmail, turning off the styles gives me a useless output of nonsense, so I must use page styling enabled.
    Can someone please give me some guidance? This forum page has vertical and horizontal scroll above and left of the bottom corner square. I have access to all the parts of both scroll bars, as is the case on most well-designed pages.
    My window-resize controls are in charge always of the bottom corner square even if the vertical scroll is supposed to be there.
    See also my first wording of this question: https://support.mozilla.org/en-US/questions/993519

    Those layout.css prefs are about enabling some CSS feature, in this case vertical writing, so have nothing to do with scroll bars.
    *Bug 772321 - implement CSS parsing of writing-mode property
    *resource://gre/greprefs.js
    <pre><nowiki>// Is support for CSS vertical text enabled?
    pref("layout.css.vertical-text.enabled", false); </nowiki></pre>
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.

  • How to Enable to vertical scroll bar in a table control

    Hi,
    I have created a table control with a wizard and later did some modifications on it. Problem I have now is that the vertical scroll bar is disabled on this table control. The end user wants to enter as many rows as possible, however as the scroll bar is disabled, he is not able to add the rows at the end (of the visible table control area).
    How do I enable the vertical scroll bar of the table control?
    Please help.
    Thanks,
    Vishal.

    Hello Vishal,
    In PBO.
    Create a Module and in the module increment the value of tbcl-lines.
    ex:
    Data : L type i.
    IN PBO.
    MODULE vertical_scroll_bar.
    MODULE vertical_scroll_bar.
    DESCRIBE TABLE itab lines L.
    <table control name>-lines = L + 10.
    ENDMODULE.
    Hope this solves your issue.
    Cheers,
    Suvendu

  • Vertical scroll bar on tab page.

    Hello,
    I have to show vertical scrollbar on my tab canvas.
    I have one Content canvas on which I have 1 tab canvas with 8 tab pages.(sec1,sec2,sec3 ..sec8)
    I have another tab canvas(kind of seb section for the above and each has 3 tab pages) like
    Sec1 will have (sub sectiion tab canvas) which has again 3 tab pages 1.1,1.2,1.3 and soon
    now on the third tab page of the sub section or second tab canvas, I need vertical scroll bar to fit number of fields which are more than the tab canvas size.
    all are from the same data block
    Could you please help me. i tried by creating staked canvas but no luck.
    can you please let me know the procedure to be followed
    Thank you in advance.

    Could you please help me. i tried by creating staked canvas but no luck.What happened when you tried to use a stacked canvas?
    If the items in the area you want to scroll are all in the same datablock you can set the Scrollbar properties of the block to be displayed. This will enable scrolling of the items that are within the specific block. If you items are assembled from more than block, then using a stacked canvas is a better option for enabling scrolling within an area.
    Also, what is your Forms version?
    Craig...

  • Help with a vertical scroll bar issue with a List component

    hi. i have a basic <s:list> that uses an XMLListCollection as it's data provider and a very basic itemrenderer. when a row in the list is clicked a function gets the list.selectedIndex then populates some text fields with more xml data. that all works fine.. the problem i have is that the vertical scroll bar on the list seems to be "clickable" - just like a row in the list. the scroll bar scrolls normally but when it's clicked the selectedIndex becomes -1 which is not helpful b/c the value -1 is passed to the XMLListCollection.
    any ideas? cheers.

    thanks but still problematic...surely the <s:List> component shouldn't return a value when the scrollbar thumb is clicked? i created a very basic list (see below) and made the list dimensions short enough so that there is a vertical scrollbar and found that when the scrollbar thumb is clicked the trace(event.currentTarget.selectedIndex) returns a number. that's annoying b/c i just want a selectedIndex value for a row that is clicked not the scrollbar.
    any ideas to get around? cheers
    <fx:Script>
    <![CDATA[
    protected function list1_clickHandler(event:MouseEvent):void
    trace(event.currentTarget.selectedIndex);
    ]]>
    </fx:Script>
    <s:List x="162" click="list1_clickHandler(event)" y="276" labelField="@label" width="144" height="153">
    <s:dataProvider>
    <s:XMLListCollection>
    <fx:XMLList xmlns="">
    <node label="one"/>
    <node label="two"/>
    <node label="three"/>
    <node label="four"/>
    <node label="five"/>
    <node label="six"/>
    <node label="seven"/>
    <node label="eight"/>
    <node label="nine"/>
    <node label="ten"/>
    <node label="eleven"/>
    </fx:XMLList>
    </s:XMLListCollection>
    </s:dataProvider>
    </s:List>

  • Vertical scroll bar in table control with wizrads

    Hi,
      Im working on a table control with a customised table. I created a table control with wizards. But vertical scroll bar is not working. How can i invoke vertical scroll bar and can any one provide the code for the all the operations on a table control like save,find,find next,change....Thanks in advance.
    Avinash

    Hi Avinash
    move the records number of your internal table into field LINES of tablecontrol. So you should change the code generated by wizard in PBO, for example create a new module:
    PROCESS PBO
    MODULE SET_DATA_TO_T_CTRL.
    LOOP..
    ENDLOOP.
    MODULE SET_DATA_TO_T_CTRL.
       DESCRIBE TABLE ITAB LINE SY-TABIX.
       <TABLECONTROL>-LINES = SY-TABIX.
    ENDMODULE.
    Max

  • Textarea: strange vertical scroll bar

    Hi, everyone
    I implemented textarea with JTextPane, code is below.
    The problem is that,
    when there is only one pane in the content of HBox, the vertical scroll bar runs normal;
    but when there is 2 panes, the vertical scroll bar changes between visible and invisible again and again.
    My code wrong? or a bug of JavaFX?
    Thanks.
    * TextArea.fx
    * Created on 2009-12-5, 22:27:47
    package morsshow;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import java.awt.Dimension;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javafx.ext.swing.SwingComponent;
    import javafx.scene.layout.HBox;
    * @author icycandy
    var text: JTextPane = new JTextPane();
    var pane: JScrollPane = new JScrollPane(text,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    text.setText("youyouyouyouyouyouyouyouyouyouyou");
    text.setPreferredSize(new Dimension(500, 300));
    var text1: JTextPane = new JTextPane();
    var pane1: JScrollPane = new JScrollPane(text1,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    text1.setText("lovelovelovelovelovelovelovelovelovelove");
    text1.setPreferredSize(new Dimension(500, 300));
    Stage {
        title: "love you"
        scene: Scene {
            content: [
                HBox{
                    content:[
                        SwingComponent.wrap(pane),
                        //SwingComponent.wrap(pane1)
    }

    Hi,
    I've just used the following SQL statement to create a tabular form:
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "PHONE1",
    APEX_ITEM.TEXTAREA(5, PHONE2, 5, 50, 'style="overflow-Y:scroll"') "PHONE2"
    from "#OWNER#"."EMP"PHONE2 is a small field, so you probably won't be able to save anything, but this statement is used in: http://htmldb.oracle.com/pls/otn/f?p=33642:100
    Both in IE7 and FF3, the scroll area appeared on the right of the box.
    Andy

  • Vertical Scroll Reload on Table Control

    Hello,
    I've created a couple table controls in ABAP for a custom transaction that is going to be run through the web portal.  My problem is that the horizontal scroll on the table is handled on the front end, and the vertical scroll is handled in the program.  This means that moving the vertical scroll bar is much slower and not as user friendly as the horizontal one when run on the web (where it has to hit the back end and refresh the screen every time it's moved).  I don't think there is anything I can do about that, but on behalf of my customer I thought I'd check to see if anyone here knows any settings or any way to run vertical scrolling without hitting the abap code.
    Thanks,
    Nathan Beeler

    You might also look at the<a href="http://help.sap.com/saphelp_webas630/helpdata/en/24/ef243a84da356be10000000a11402f/plain.htm">ITS Service Parameters</a>. I'm thinking of ~AUTOSCROLL.
    Rob

Maybe you are looking for

  • 2 iTunes Accounts, 2 computers, multiple iPads/iPhones/iPods

    My wife and I have several iDevices between the two of us, and we currently share one iTunes account.  She recently received an iPad for work, and needs to set up a separate iTunes account that can be linked to her corporate credit card for business

  • Bar graph legend problem

    Hi I am using JDeveloper Studio Edition Version 11.1.1.3.0. My problem is that I have made a bar graph inside an af:showDetailItem but the legends isn´t shown correct. I can´t see the legends at all when I place the legends in the bottom and if I pla

  • SAP Script Cheque Printing

    Hi All, i placed the variables  variable1 and variable2 in the same window. Now i am going to print the values in the same line, variable1 should be extreme left and variable2 should be extreme right. And if length of variable1 exceeds it should be p

  • EP for xMII12.0

    Is EP must for xMII 12.0? I understand that 12.0 is on Netweaver stack but I am unaware of EP. Regards

  • Fix for ejecting disks

    I think I may have found a trick for ejecting disks...If you press the eject button once, and then again when the icon on the screen comes up. Then if you don't have a disk in the super/combo drive it will not attempt to eject, but if you do it will.