Jump to content

Leadwerks tutorial - Equal game speeds


AggrorJorn
 Share

Recommended Posts

Hehe, I had a lot of fun watching this video tutorial knowing the backgrounds. Look who's talking :unsure:

The tutorial is now accurate though.

Sometimes you need also to curve the AppSpeed(), but that is not always needed, it was needed in some specific version though.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Also when you talked about fw:update and you said we should use in the loop the "UpdateTime" command when not using fw, you could write it there. the impact would be bigger :P

 

now, is this technique used also in moving the mouse? because as i said earlier here http://leadwerks.com/werkspace/index.php?/topic/3000-equal-game-speed/page__pid__27733#entry27733 , i have this lines:

 

            //rotation by mouse
           int mx = Leadwerks.Graphics.Width / 2;
           int my = Leadwerks.Graphics.Height / 2;
           dx = Leadwerks.Math.Curve((Leadwerks.Mouse.X - mx) / 4, dx, (float)(3 / Timing.Time));
           dy = Leadwerks.Math.Curve((Leadwerks.Mouse.Y - my) / 4, dy, (float)(3 / Timing.Time));

 

and the move is not too smooth like in C++

 

and if I try to to use 0.2 * Timing.Time, I only have a blank screen...

i5 2.7Ghz, GTS 450, 8GB Ram, Win7 x64; Win8 x64

rvlgames.com - my games

RVL Games Facebook Page, YouTube Channel

 

Blitzmax :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...