Android Question find difference game

Almora

Well-Known Member
Licensed User
Longtime User
Hi..
do you have a simple example for this game? How it is made.?

I put buttons in places that are different in design. I did it with show hide by clicking the button. it is difficult to match the points. Is there an easier and more practical method?
Thanks..

PicsArt_03-23-04.24.53.jpg
 

Attachments

  • PicsArt_03-23-04.24.53.jpg
    PicsArt_03-23-04.24.53.jpg
    301 KB · Views: 154

kimstudio

Active Member
Licensed User
Longtime User
I do like to play find difference game. Not sure whether it relates to your question but if I want to make it:
  • Use B4J to make an authoring tool: define data structure with picture and hot areas, use mouse click event to record hot areas which include center coordinates and area radius, save to picture sets
  • B4A: load picture sets with hot areas info, use touch event instead of button to get coordinates and check if it is in hot areas
 
Upvote 0

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
Yes, it is a good practice of B4X powerful tool, you can do it by:
1- As Erel said: put transparent panel above imageview & find the touched point with touch event of panel "make sure panel & imageview have the same dimensions".
2- Add string data "desired x,y point" to second imageview tag property to handle/compare the touched point of panel with the point of desired true answer.
3- In most cases the touched point is not the same of true answer point, so you should approximate the answer as the shortest distance between two points.
 
Upvote 0

Almora

Well-Known Member
Licensed User
Longtime User
I guess my method is very primitive. ?

SharedScreenshot.jpg

It is difficult to match the differences in design.


I prepared a difficult game. apk is attached.
 

Attachments

  • findD.zip
    197.8 KB · Views: 186
  • findD.apk
    369.3 KB · Views: 147
  • Screenshot_20210324-101629.jpg
    Screenshot_20210324-101629.jpg
    131.9 KB · Views: 153
Upvote 0
Top