hi guys i dont know whats wrong with my coins spawning logic here
Hey @mhmdamjd!
To help get the ball rolling, would you mind also sharing a screenshot of where your coins are spawning? Also, have you tried printing the vectors for your lane offsets to make sure the offsets are being called correctly?
Any additional specifics or info you provide may go a long way in solving your problem!
hi im really noob at c++ and this code from chat gpt also they are spawning using the spawn coin in the image one the last thing because i dont have any other spawner just these two images and how do i print the offsets
Hey @mhmdamjd,
I was meaning an image of where your coins are spawning in your level. As for printing a debug string, check out the following learning snippet:
This should help us narrow down what is and is not working.
Hey @mhmdamjd,
Checking in! Are you still having issues spawning your coins?
yes still n the same location
Hey @mhmdamjd,
Could you provide that screenshot of where your coins are spawning in level (the level not the code) as well as what your output log for your lane index / spawn coordinates?
Try to debug it.
You can use UE_LOG(LogTemp, Warning, TEXT("Coin location: "), CoinLocation); in Coin constructor and the same method to check the SpawnLocation in the SpawnCoin() in the CoinSpawner.Cpp
that worked thank you
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.