Jump to content

LITTLE HELP PLEASE with interpolateBetween


ZkillCatIV

Recommended Posts

Posted

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

Posted

How are you drawing it? Is it all in one dxDrawText or multiple ones? As for how to use interpolateBetween, it's thoroughly explained on the wiki how to use it. You just gotta read it and try it a few times and you'll get the hang of it.

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

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.

"The humble beet is the answer to all riddles." - Rolf

Posted
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. :) 

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

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 

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