iOS Question Slow moving compass

Albi

Active Member
Licensed User
Longtime User
I was trying to do a B4i version of a B4A compass. There is no animation library so I used a canvas to make the compass.

I have two problems I can't work out.
1. The compass seems to move pretty slowly around. Is there a way to make it more responsive? I appreciate it might be because of how the heading updates quite slowly, but perhaps there's a way to change that too?
2. When I open the panel/canvas from a second page, the image doesn't refresh properly. It seems to start small, resize itself, but the smaller image doesn't get removed.

I've attached a code I have used. Any help and tips are much appreciated!
 

Attachments

  • CompassTest.zip
    433.1 KB · Views: 207

Albi

Active Member
Licensed User
Longtime User
thanks. I changed it and also made it a smaller file size so it is much more responsive now.

i do have another issue with the images. I am only using a needle image, with a transparent background so i can put it on the compass. When it rotates, it doesn't remove the old image, so it becomes blurry. I've attached an image showing the problem.

I've also attached the project if that helps.
 

Attachments

  • needle.PNG
    needle.PNG
    255 KB · Views: 198
  • CompassTest.zip
    268.4 KB · Views: 220
Upvote 0

narek adonts

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top