Ahmed Ly Posted April 9, 2017 Share Posted April 9, 2017 Ok so I want to recreate the notification system from Rust: The problem is, I don't know how to make the DX Drawn rectangle move up and create a new one under, and after 2 new notifications, fade the top ones.. Like in the picture basically... So this is how I started it: dxDrawRectangle(s[1]*48/60, s[2]*28/35, s[1]*304/1700, s[2]*24/600 ,tocolor(114,140,69,150)) dxDrawText("Stone +5", s[1]*48/59.5, s[2]*28/17.35, s[1]*50/1440, s[2]*24/900, tocolor(192,192,192,210),1.2,"default-bold","left","center", false, true, false, false, false) Thanks. Link to comment
#BrosS Posted April 9, 2017 Share Posted April 9, 2017 You can use interpolateBetween Link to comment
Ahmed Ly Posted April 9, 2017 Author Share Posted April 9, 2017 2 minutes ago, #BrosS said: You can use interpolateBetween Give me Example? pls Link to comment
AE. Posted April 9, 2017 Share Posted April 9, 2017 or you can use variables cy = 33 -- for example dxDrawRectangle(anynumber,cy -- .. etc -- when you want it to go up cy = cy+1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now