Jump to content

Recommended Posts

Posted

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!

Posted

 

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!

Posted

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

Posted

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!

Posted

[...] 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?

Posted

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.

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...