Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: how do i fix my image delay and appearance problems

  1. #1
    Junior Member
    Join Date
    May 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how do i fix my image delay and appearance problems

    im trying to make an image appear and then disappear after a selected amount of time then be replaced with a blue screen and the word O.A.S.I.S. the image isnt appearing. i'm using processing 3. here is my code:
    PImage Logo;
    int logoX = 180;
    int logoY = 50;
     
    void setup()
    {
        size(1200, 800);
      drawBackground();
    }
     
    void drawBackground()
    {
        background(255, 255, 255);
        setupSequence();
     
    }
     
    void Delay(int time)
    {
     delay(time); 
    }
     
    void drawLogo()
    {
       Logo = loadImage("AlcarazIndustriesLogo.png");
      image(Logo, logoX, logoY);
    }
     
    void setupSequence()
    {
      drawLogo();
      Delay(1000); 
      endLogoSequence();
    }
     
    void endLogoSequence()
    {
      logoX = logoX + 10000;
      image(Logo, logoX, logoY);
      Delay(10000);
      background(200, 200, 255);
      fill(0, 0, 255);
      textSize(60);
      text("O.A.S.I.S", 500, 100);
    }

    please tell me what i'm doing wrong

  2. #2
    Member MrLowBot's Avatar
    Join Date
    Nov 2018
    Location
    Sweden
    Posts
    121
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: how do i fix my image delay and appearance problems

    We might need all the code. Please put it all here so that we can see it clearly.
    "Tick, tack"

  3. #3
    Junior Member
    Join Date
    May 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how do i fix my image delay and appearance problems

    Quote Originally Posted by MrLowBot View Post
    We might need all the code. Please put it all here so that we can see it clearly.
    it's already all there, it's just not a very long script

  4. #4
    Member MrLowBot's Avatar
    Join Date
    Nov 2018
    Location
    Sweden
    Posts
    121
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: how do i fix my image delay and appearance problems

    Quote Originally Posted by NightArcher3677 View Post
    it's already all there, it's just not a very long script
    Aha now i see. Not used to processing 3 so cannot help you with that.
    Last edited by MrLowBot; May 6th, 2019 at 03:52 AM.
    "Tick, tack"

Similar Threads

  1. [SOLVED] SWING:- GUI And Image Problems.
    By BlueEyesWhiteDragon in forum What's Wrong With My Code?
    Replies: 9
    Last Post: June 10th, 2014, 07:37 AM
  2. Draw same image in random position with time delay
    By Luix in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 20th, 2013, 06:26 PM
  3. Problems with GUI, seems simple fix but I can't figure it out
    By Harrald in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 31st, 2012, 04:51 AM
  4. Java Image Problem! Probably easy fix!
    By TrivialFate in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 14th, 2011, 07:12 AM
  5. Image problems
    By Bekuraryou1228 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 19th, 2010, 05:53 PM

Tags for this Thread