Changing backgrond in applet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Changing backgrond in applet

  1. #1
    Join Date
    Jul 2004
    Posts
    83

    Changing backgrond in applet

    Hey I am putting an image as my background that is bigger then my applet, but I was wondering how I could make the background appear as if it were moving once i moved far enough over..kind of like mario.
    They say if you play a Microsoft Windows CD backwards it will play satanic messages. But thats nothing, if you play it forwards it installs Windows.

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    Just change the coordinates and position the image differently when you redraw it.
    g.drawImage()

    If the image is started at 0,0 then if you move to the right say 10 units then position the image at -10,0 and it'll look like you've moved.

    Going to do some sort of parallax scrolling?

  3. #3
    Join Date
    Jul 2004
    Posts
    83
    no, i'm trying to create mario again lol
    They say if you play a Microsoft Windows CD backwards it will play satanic messages. But thats nothing, if you play it forwards it installs Windows.

  4. #4
    Join Date
    Mar 2004
    Posts
    635
    Mario used the concept though, i think. The background scrolls at a different speed than the level.

Similar Threads

  1. applet problem:(
    By wojtek in forum Java
    Replies: 1
    Last Post: 03-26-2006, 03:02 PM
  2. JavaMail applet problem
    By Tataroz T. in forum Java
    Replies: 1
    Last Post: 10-20-2005, 07:19 AM
  3. Bouncing Ball Applet
    By nescafe in forum Java
    Replies: 1
    Last Post: 10-07-2005, 09:51 AM
  4. Replies: 3
    Last Post: 08-23-2001, 12:01 PM
  5. Replies: 0
    Last Post: 03-28-2000, 02:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center