Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Flappy Bird Understand Value of coordinate

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Zanko
Cheater
Reputation: 0

Joined: 28 May 2014
Posts: 40

PostPosted: Tue Aug 25, 2015 4:00 pm    Post subject: Flappy Bird Understand Value of coordinate Reply with quote

Hi I am writing a Flappy Bird bot for fun. I managed to get the Y-Coordinate of the bird but I am not understanding the scaling of the coordinate. Can someone with experience please guide me how to scale to "normal" unit with equal distance? I have attached the picture and hopefully this explains my point.

Basically the coordinate is increasing exponentially. 2.0-2.5 is very close to each other. And 4.0-4.5 is very wide spread. The coordinate is in float. Can somebody please explain to me why the number are in such format! Thank you so much!

By the way, if someone wants to play around and get the value I'm talking about please go to flappybird(dot)io



FlappyBird.png
 Description:
Coordinate illustration. I used paint to cut over the bird so the coordinate can be seen in one picture.
 Filesize:  30.67 KB
 Viewed:  4120 Time(s)

FlappyBird.png


Back to top
View user's profile Send private message
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Tue Aug 25, 2015 5:27 pm    Post subject: Reply with quote

They use a float cause it'll give a nice smooth effect.

Eh, cause they programmed it that way; either figure the fomular out or live with it.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Tue Aug 25, 2015 6:58 pm    Post subject: Reply with quote

Y position isn't a float but a double. 0 means top of the screen, starting position varies between 512 and 530, and you hit the ground near 900.

You experience weird behavior because your are reading a part of the double.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Zanko
Cheater
Reputation: 0

Joined: 28 May 2014
Posts: 40

PostPosted: Tue Aug 25, 2015 7:36 pm    Post subject: Reply with quote

How could i have made such mistake! Thank you so much for the replies!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites