Jump to content

LITTLE HELP PLEASE with interpolateBetween


ZkillCatIV

Recommended Posts

i need someone to explain me how does interpolateBetween work and how can it be applied and on what please and thank you. i want to make a script that shows credits like in the movies where credits go from the bottom to the top crossing the screen. like that or can someone tell me if its possible PLEASE AND THANK YOU 

 VjDOn.jpg

image

Link to comment

interpolateBetween is for 3D drawn objects. What you're requesting with scrolling text could be done by first rendering to a large target, then scrolling through the target using dxDrawImageSection to only display a part of the render target at a time. I personally made a scrolling billboard a long time ago. I used this exact function, but the 3D variant so it displayed on a billboard ingame. I then just did a timer with real time drawing to change what part displayed.

Link to comment
1 hour ago, Woovie said:

interpolateBetween is for 3D drawn objects. What you're requesting with scrolling text could be done by first rendering to a large target, then scrolling through the target using dxDrawImageSection to only display a part of the render target at a time. I personally made a scrolling billboard a long time ago. I used this exact function, but the 3D variant so it displayed on a billboard ingame. I then just did a timer with real time drawing to change what part displayed.

Just because it has parameters for a Z-axis doesn't necessarily mean it's "meant" for 3D objects, it works perfectly fine for 2D animations. You're absolutely right though; using a render target probably is a better alternative. :) 

Link to comment

Thank you so much guys i was doing it with just one dxDrawText using the /n to skip lines but i couldn't get the text to move as i wished to. I tried reading the wiki like 10 times i get the some of the interpolateBetween but i dont get what do i put where it ask me about the x,y,z and the time process but im going to try Thanks Woovie and DealMan . :D you guys are the best 

Link to comment

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