Hi, I’m trying to create a blueprint which increase the star counter everytime the player overlap it. It seems perfect to me but in the game this counter goes by two or three sometimes and idk why.
There’s some italian words like stella which means Star.
I don’t know if you’re aware, but your video is borked it only shows the primary editor screen, and I can see by your mouse movements you were trying to show code. Try using screen snips for your code so we can take a look!
You will want to add a “Set Collision Enabled” node after “++”, and set the “Pawn” collision to False. That way you can’t trigger the collision more than once. You can also destroy the actor if you wish
Thanks but I think I found out the problem… The stars aren’t spawning but moving. When they moves the player overlap them and increase the counter. I activated the teleport in the node to move them but I don’t know how to make them teleport at least 30 from the player… Any suggestion?
hi,
you could make a bool like isPicked? or something and set it right after the branch to true and use a other == player actor AND NOT isPicked? for the branch… then you could reset the bool later too if you want too… but like Mind-Brain said you cant see nothing in the video or the outliner.
I’ll try but the problem is which condition reset it? Would you suggest me to switch from moving actor when overlapped to spawning everytime a new actor?
hmm you could make a star / stella pool and set em right after picking to visible false, no collision and reuse it again, make a function like boot and there you could reset the hole thing and make a new entity. hehe i am thinking maybe i come up with something better, back soon
however I can’t understand Pick Ups interface in your image. It’s a new blueprint? How can i add it? I can’t add it in My Blueprint section in WID_PickUp. Sorry but I never used them
ohh you mean the PickUp Event ?
I am so sorry i see i missed an image of the interface, i will make you one.
That is the Interface with only the function called PickUp. then player actor, star and the widget have the same interface.