Alianza Posted July 25, 2017 Share Posted July 25, 2017 Hello guys, I've another question that I hope you can help me answer it. I'm playing with some interface edition, and now I'm trying to add a new animated texture. The animated texture I've created works fine, but only during one time. I use the method Play to play the animated texture when I want, but it doesnt enters in a loop, like it does in Unreal Engine. Any of you guys know how to make an animated texture enter in a loop 'till I decide to stop it with the Stop or Pause method? Thanks! Link to comment Share on other sites More sharing options...
UgliBiBagli Posted July 27, 2017 Share Posted July 27, 2017 perhaps final function SetLoopCount (int a_LoopCount) {} Link to comment Share on other sites More sharing options...
Alianza Posted July 27, 2017 Author Share Posted July 27, 2017 perhaps final function SetLoopCount (int a_LoopCount) {} Hey UgliBiBagli, thanks for replying! Ye, I've tried that but it didnt work for me. Maybe I have to put a value higher than 1 or idk. I'll try it again anyways. Thanks! Link to comment Share on other sites More sharing options...
GLO Posted July 27, 2017 Share Posted July 27, 2017 perhaps final function SetLoopCount (int a_LoopCount) {} what is that rabbit face holy Link to comment Share on other sites More sharing options...
Alianza Posted July 27, 2017 Author Share Posted July 27, 2017 what is that rabbit face holy Interface.u edition. Link to comment Share on other sites More sharing options...
GLO Posted July 28, 2017 Share Posted July 28, 2017 Interface.u edition. Link to comment Share on other sites More sharing options...
UgliBiBagli Posted July 28, 2017 Share Posted July 28, 2017 Hey UgliBiBagli, thanks for replying! Ye, I've tried that but it didnt work for me. Maybe I have to put a value higher than 1 or idk. I'll try it again anyways. Thanks! emmm... yes because setting it to 1 will do exactly the thing you are trying to avoid - playing it once TRY 0 or -1, maybe that gonna be interpreted as endless loop (probably not) your best bet to make it actually endless would be putting it on a timer with the delay equal to playtime Link to comment Share on other sites More sharing options...
Alianza Posted July 29, 2017 Author Share Posted July 29, 2017 emmm... yes because setting it to 1 will do exactly the thing you are trying to avoid - playing it once TRY 0 or -1, maybe that gonna be interpreted as endless loop (probably not) your best bet to make it actually endless would be putting it on a timer with the delay equal to playtime Thank you again! It is actually quite a good idea. Thanks! Link to comment Share on other sites More sharing options...
Alianza Posted August 2, 2017 Author Share Posted August 2, 2017 [...] your best bet to make it actually endless would be putting it on a timer with the delay equal to playtime Did it. Worked the way I wanted. Thanks for that. By the way, *stupid question alert*: the timer I've added for a small texture, can it cause lags, freezes or something related with the server? Link to comment Share on other sites More sharing options...
vampir Posted August 4, 2017 Share Posted August 4, 2017 Do you mean SetTimer & OnTimer? It isnt hard to make calculations lag the client, but if you just have function to start animation it should be fine even if you have very low timer delay. Link to comment Share on other sites More sharing options...
Alianza Posted August 6, 2017 Author Share Posted August 6, 2017 Do you mean SetTimer & OnTimer? It isnt hard to make calculations lag the client, but if you just have function to start animation it should be fine even if you have very low timer delay. I have a function to start the animation every xx seconds. So ye, that would be it. Thanks for replying, @vampir! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now