REPEAT LOOP UE5

How can I make a “repeat loop” so that this tick event works up to level 50 and not just level 2?

No clue what you’re after but I’m 99.9% sure this should not be spammed 60 times every second. Should it?

Care to share more details about what you’re up to?

Sorry for sending it a lot of times, but what I tried to do was a level pop up like a roguelike where when you pass a level a pop up appears with three choices of powers/skills, I wanted to do that but it’s just replicating at level 2, I tried to make a loop but it still didn’t work.

  • create a widget responsible for showing the skills, something like:

The widget shows / hides itself when called or skill has been chosen. It then dispatches the choice - you will need much more script, of course, this is just a method.

  • when the player levels up, generate some skills and tell the widget to show them:

Now you have a loop

  • the player levels up → a widget pops up
  • the widget hides itself when clicked

This is 100% pseudo-script, ofc. Please do not try to copy any of this, this is just a flow that could work for this. You should do this in the Game Mode and/or the Player.

Is this supposed to be like the Vampire Survivor thing? If so, I’d look into Actor Components for skills asap. I made a system like this once and it worked pretty well.

1 Like

Another solution would be to use data table like this:
The row name or id will be your level number

More detail:
If you want to pass out texture icon for your widget skill, you can use soft reference for texture in a data table.
And make use of bp interface instead of casting for your main character.

2 Likes

That goes without saying. The struct contains a soft actor component reference, we then spawn the component on the player → thus granting them a new skill.

The component can be Health, Faster Movement, obligatory Fireball and so on.


I believe OP has still issues with showing a widget consistently at this point, though!

2 Likes