Jump to content

Help on DirectX Drawing - SOLVED, CLOSE PLEASE


12p

Recommended Posts

Posted (edited)

hello there, it's me again. I just want to know, there is some way to change a "DirectX" text? I want to do some kind of cutscene, and use DirectX as the storyteller. But I dunno if there is some way to change its text, or just use another DirectX text...

Edited by Guest
Posted

I dont know HOW and WHAT are you trying to change?

You are talking about dxDrawText? Then notice - it's first argument is string with text to display. What is so hard?

Posted

yes. dxDrawText is a DX Text. But I want to show it, then fade it out, change its text content, and fade it in. There is some way to change the text content of a DX Text?

Posted
  
mytext = "first text" 
alpha=255 
addEventHandler("onClientRender", getRootElement(), function() 
if (alpha>0) then alpha=alpha-1 end 
dxDrawText(mytext, 0, 0, 0, 0, tocolor(255,255,255,alpha)) 
end) 
setTimer(function() 
mytext = "2nd text" 
end, 1000, 1) 
  

now do whatever you want with it.

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...