Jump to content

Dx تحريك


Recommended Posts

Posted

شباب عندي كود دي اكس

dxDrawRectangle(screenW * 0.7687, screenH * 0.2982, screenW * 0.1881, screenH * 0.0482, tocolor(R, G, B, 180), false)
 

ابي اخليه يتحرك من اليمين لمكان معين ويقف

ممكن الكود حق الحركه ؟

Posted
5 minutes ago, #BrosS said:

getTrickCount ()
interpolateBetween

الشغلة فيها شوي عصير مخ لا تسألني ذذ

ذذ

اتوقع ذا يوزفل فنكشن

تقدر تعطيني السورس كود حقه

getTrickCount

Posted
13 minutes ago, Default said:

مو شرط يستخدم 


getTickCount
interpolateBetween

يقدر يسويها بـ المتغيرات .

اللهم زدني علما

Posted

 

3 hours ago, #BrosS said:

اللهم زدني علما

يب ، زي ما اسوي انا

اسوي فنكشن للوقت

local time = 0

واسوي بداخل الرندر إعداة تعريف 

time = time + 0.02 -- تقدر تغيرها على حسب

وتسوي if time >= 1 then time = 1 end 

ويوم تجي تشتغل في الـ inetpolateBetween تروح الـ fProgress تعوضها ب time

Posted
1 hour ago, coNolel said:

 

ويوم تجي تشتغل في الـ inetpolateBetween تروح الـ fProgress تعوضها ب time

أحسن طريقة 

getTrickCount و interpolateBetween

لأنها لما تشتغل تحسها بشكل واقعي وخرافي و smooth

مدري كيف بالعربي ذذ ،

صحيح فيها لحس مخ والواحد مو أول يوم يتعلم لها لكنها أحسن

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...