I’m a total newbie at game programming even though I’ve been programming for a while now and I’ve been playing around with creating essential paper2D stuff for my game. However, there’s a problem I’ve been trying to solve for days now. I can’ t understand why all the movement components of my game when I debug my game remain NULL even though I do some stuff with them. All the other components work just fine, the weird problem appears to be only with the movement components.
Anyways, here’ s a screenshot of my projectile’s movement component while debugging my game in VS2015. I felt it’s not that neccessary to add pictures of my .cpp and .h files. You can see the part of .cpp file I’ve created for my projectile, the .h file just declares the components I want to use for my projectile.
It seems I’m not the only one having this problem as there was a thread about that created earlier: https://forums.unrealengine.com/showthread.php?16514-Adding-custom-movement-component
However, I couldn’ t find the answer I seeked there. In the UE4 I had the similar log output as you can see in the following picture (the message is copied from the thread I was pointing out earlier):
I hope this problem is solvable, because it has quite an impact for the coding I want to do in my future plans.
Thanks in advance!