FileEX Posted February 23, 2021 Posted February 23, 2021 How can I do such endless sliding? This is my old script, but unfortunately I don't have it and I don't remember completely how I did it then. I know it's about dxDrawImageSection, but I can't remember what exactly https://www.youtube.com/watch?v=EoIjcwZ8Gqg
Moderators Patrick Posted February 23, 2021 Moderators Posted February 23, 2021 If the "coordinate" extends beyond the size of the image, it starts from the beginning. You need to make sure you can't go over the total size of the image with scrolling.
FileEX Posted February 24, 2021 Author Posted February 24, 2021 I have this code, but it is not endless. It comes to the end of the graphics and jumps to the beginning, it's not the effect I wanted to get local x = 0 local ecgSpeed = 1; addEventHandler('onClientRender', root, function() x = x - ecgSpeed if (x <= -388) then x = 0; end dxDrawImageSection(pulseX, pulseY, pulseW, pulseH, x, 0, 388, 77, pulse) end);
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