Android Question Graphics not appearing as they should

noclass1980

Active Member
Licensed User
Longtime User
Hi, I've been playing with AlwaysBusy physics engine Game2 which drops random basketballs, footballs and wheels (as circles) at a touch of the screen. If I substitute a different graphic of the same size (60x60 pixels), my graphic appears as a square with the picture inside. Can anyone tell me what I'm getting wrong? The code below is line 65 from the game where the file name is set

B4X:
    bm.Initialize(File.DirAssets,"wheelbig.png")

and I change it to

B4X:
bm.Initialize(File.DirAssets,"circle.jpg")

I've attached my two replacement graphics and the wheelbigfrom the original game. Thanks in advance.
 

Attachments

  • circle.jpg
    circle.jpg
    2.6 KB · Views: 116
  • salt.png
    salt.png
    2.1 KB · Views: 134
  • wheelbig.png
    wheelbig.png
    8 KB · Views: 144

noclass1980

Active Member
Licensed User
Longtime User
Ok, that works, thank you very much.
 
Upvote 0
Top