Results 1 to 2 of 2
  1. #1
    poupas is offline Member
    Join Date
    Nov 2010
    Posts
    11
    Rep Power
    0

    Exclamation Need help on my pipes game

    Hey guys (:

    Ive got this problem in my game:
    i dont know how to rotate my pipe... ive tried this:


    public void actionPerformed(ActionEvent e) {
    int aux = pecaColocar.getRotacao();
    pecaColocar.setRotacao(++aux);

    pecaColocar.repaint();
    }

    the method seRotacao(int a) puts a new rotation to the pipe and the getRotacao() gets the pipe's rotation... the problem is that in the first try, the pipe rotation changes (for example from 0 to 1) but if i want to change again the pipe's rotation, it doesnt rotate anymore, (well it does rotate, but from 0 to 1 again).

    I tried almost everything... if you could help me i would be very appreciated....

    Thanks

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Need help on my pipes game

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Names pipes in java
    By Zept in forum Networking
    Replies: 2
    Last Post: 08-06-2011, 09:20 PM
  2. Replies: 1
    Last Post: 06-02-2011, 10:29 AM
  3. Named pipes between Java and C/C++ programs
    By lipkerson in forum Advanced Java
    Replies: 7
    Last Post: 11-07-2010, 12:28 PM
  4. How to use pipes for inter-thread I/O
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-09-2008, 07:37 PM
  5. named pipes
    By samson in forum Networking
    Replies: 1
    Last Post: 04-04-2007, 07:40 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
  •