B4J Question Draw image 180 Degrees

Discussion in 'B4J Questions' started by ElliotHC, Jun 3, 2019.

  1. ElliotHC

    ElliotHC Active Member Licensed User

    I am using MainForm.RootPane.AddNode to animate images moving as part of a game, it's working really well but I need to have a player 2 which will be working effectively upside down at the top of the screen as if the display was like table soccer.

    I can run everything again going up instead of down but I need to be able to also flip those images so they look the right way up for the player at the other end of the table.

    Does anyone know how that might be done using the above?

    Thanks
     
  2. jimmyF

    jimmyF Active Member Licensed User

    Code:
    Private mBmp As B4XBitmap

    mBmp.Rotate(-
    180)
     
    ElliotHC likes this.
  3. ElliotHC

    ElliotHC Active Member Licensed User

    Does this work with png files?
     
  4. jimmyF

    jimmyF Active Member Licensed User

    It does with the png files that I use and create.
     
  5. ElliotHC

    ElliotHC Active Member Licensed User

    Sorry to seem a little clueless, but how do I call that ?
     
  6. jimmyF

    jimmyF Active Member Licensed User

    Try this:
    Code:
    mBmp = mBmp.Rotate(-180)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice