Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Dx8 engines] Clock


DMF
 Share

Recommended Posts

oks this has been test with EA, ETFF

EO 3.0 users there is a post in another topic where i posted the label method.

Credits my self and erwin for pointing where the timer codes where in the engine.

(both have been tested to work, some moded copys might change its outcome, if this is the case and you added it correctly, and still an error please post it it might just be something small.

Required image for this tut ![](http://www.freemmorpgmaker.com/uploadfiles/4b4d892317c03d1c0f6bea41470ef644.png)

(above image is a black square its ment as a test and nothing more)

(i might add more support of engines for this , but heavy might. if you dont like this code dont post or use, if you wanna troll use another topic. ill help best i can i am not a super programmer , i did the dx7 one for my self and posted it in someones topic, they wanted it for dx8 so i did it. now enjoy)

>! In MODGRAPHICS in the Sub DrawGui add dis in the top like the rest of them.
>! ```
>! Dim tmr2000 As Long
>! ```
>! In MODGRAPHICS in the Sub DrawGui, just undr the drawing for the "hotbar part" add this in
>! ```
>! If tmr2000 < GetTickCount Then
>! ' check ping
>! Call DrawClock
>! tmr2000 = GetTickCount + 2000
>! End If
>! ```
>! In MODGRAPHICS at the bottom put this sub in
>! (Tex_Gui(59) change 59 to the next number in the gui folder, and name the image as that number.)
>! ```
>! Public Sub DrawClock()
>! Dim i As Long, x As Long, y As Long, Sprite As Long, Width As Long
>! Dim Height As Long, tempText As String
>! Dim dtmTest As String
>! Width = 65
>! Height = 25
>! x = 191
>! y = 195
>! RenderTexture Tex_GUI(59), x, y, 0, 0, Width, Height, Width, Height
>! x = 200
>! y = 200
>! dtmTest = Format(Now, "H:MM AM/PM")
>! Width = EngineGetTextWidth(Font_Georgia, "XX:XX")
>! RenderText Font_Georgia, dtmTest, x, y, Red
>! End Sub
>! ```

>! In MODGRAPHICS in the Sub DrawGui add dis in the top like the rest of them.
>! ```
>! Dim tmr2000 As Long
>! ```
>! In MODGRAPHICS in the Sub DrawGui, just undr the drawing for the "hotbar part" add this in
>! ```
>! If tmr2000 < GetTickCount Then
>! ' check ping
>! Call DrawClock
>! tmr2000 = GetTickCount + 2000
>! End If
>! ```
>! In MODGRAPHICS at the bottom put this sub in
>! (Tex_Gui(59) change 59 to the next number in the gui folder, and name the image as that number.)
>! ```
>! Public Sub DrawClock()
>! Dim i As Long, x As Long, y As Long, Sprite As Long, Width As Long
>! Dim Height As Long, tempText As String
>! Dim dtmTest As String
>! Width = 65
>! Height = 25
>! x = 191
>! y = 195
>! RenderTexture Tex_GUI(59), x, y, 0, 0, Width, Height, Width, Height
>! x = 200
>! y = 200
>! dtmTest = Format(Now, "H:MM AM/PM")
>! Width = EngineGetTextWidth(Font_Georgia, "XX:XX")
>! RenderText Font_Georgia, dtmTest, x, y, Red, , , True
>! End Sub
>! ```
Link to comment
Share on other sites

Hei DarkMatch I kinda Confuse, I did all the Tutorial and When i Test it up The ERROR say: Uncoverable DX8 !

Is that something wrong? Because i kinda Confuse with that Black box picture , How i use that picture..?

Thank you and Please Reply !!!
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...