FileEX 0 Posted Tuesday at 08:59 Share Posted Tuesday at 08:59 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 Link to post
Patrick 324 Posted Tuesday at 10:38 Share Posted Tuesday at 10:38 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. Link to post
FileEX 0 Posted Wednesday at 11:03 Author Share Posted Wednesday at 11:03 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); Link to post
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