Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Sync and FPS

Author
Message
metamorpho
8
Years of Service
User Offline
Joined: 17th Oct 2016
Location: Planet Earth
Posted: 19th May 2019 06:49
There are powerful and weak computers, how to make the game work at about the same speed on different computers?

Which FPS (30 or 60) do you use for playing under Windows?
Amon
10
Years of Service
User Offline
Joined: 30th May 2014
Location: Shropshire, United Kingdom
Posted: 19th May 2019 06:57
I use this. When you want to move a sprite using this, if you had playerX = playerX + 5, instead use playerX + Frame[0]X# * 5. You will need to increase the move value a lot though to notice any movement when using deltatimers. I've attached a simple shooty example to this post that shows you how it all works.

Win 10 Pro - AMD RYZEN 7 Octacore 3.8ghz - 32GB DDR4 - RTX 2070 8GB

Attachments

Login to view attachments
Ortu
DBPro Master
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 19th May 2019 17:15 Edited at: 19th May 2019 17:17
metamorpho
8
Years of Service
User Offline
Joined: 17th Oct 2016
Location: Planet Earth
Posted: 20th May 2019 17:04
Imagination, Ortu, thank !!

Login to post a reply

Server time is: 2024-11-22 21:13:42
Your offset time is: 2024-11-22 21:13:42