So what i now get is that the rocket still spawn on a clicked position but i doesn’t move anymore. It stays stationary
Try different targets. I had this problem, I’m working on it…
So, I scratched the tick idea, and went with a timeline on the end of the hit result:
It’s better, but not great because we’re taking away the projectile path.
Okay so this is kinda working.
When i launch my rocket it moves towards the clicked position and then stops, if i click again i doesn’t do anything, and after a while my rocket just start moving forward again. (i think this has to do with the ‘ProjectileMovement’ i have on the rocket)
So what you are saying is that i should try to make the rocket fly towards my mouse? Isn’t that difficult, im still learning a lot from you and i thank you for that! anyway it’s getting late and i am going to continue my work tomorrow thank you so much for you help today ClockworkOcean!
It’s really hard to pinpoint any problems without seeing what’s happening.
Even if you get it working it’s gonna look weird because you have the positioning of the projectile fighting with any other positioning we’re trying to give it.
Why not just get your little guy to aim the right way and use the projectile’s own nature to do the business?
EDIT: You can’t do it with tick, because it gets slower when it nears the target. You can do it with TL, but you need some more calcuations to change the TL params depending on how far the target is. I think it’s better with projectile physics…
Yes, is it not a projectile? Does it move like a projectile? You’re welcome…
What do you see as a Projectile ? The rocket gets instanciated and then because of the projectilemovement flies forward! I have no real means of controlling it in anyway, which is pretty annoying. I am stil breaking my head over this and it is the main mechanic in the game, if we manage to make the rocket follow the mouse the game will be as good as finished actually.
He’s back!
Yes, like the yellow ball in the default first person, that’s what I mean by a ‘default’ projectile. What I was thinking is, if you rotate your player correctly, you can just let the projectile physics do it’s stuff, done…
With sending the rocket / missile to the mouse coordinates, it does work with the timeline, if you set the length to about .25 seconds. Does it work for you?..
okay lemme check that out! But if we can’t get it working i think i might just scrap the idea…
Its weird i have the exact same code as you but it does not seem to work anymore?
Take out that bool for now ( the one that stops you firing ). Any good?
Sorry we couldn’t get there buddy. The only thing I can do is take a look at the project if you want to upload it somewhere. But that wont be until tomorrow now…
ClockworkOcean, i thank you for all you help but i simply do not have enough time to find the correct way of shooting these rockets, Tomorrow is my deadline and i am just going to focus on content. I do not now how i could ever thank you, you have helped me so much and have taught me a lot of things. I appreciate you taking the time to read my questions and answering them to your utmost potential! I am grateful ClockworkOcean.
If i do not forget it i will upload my project somewhere just as i would for my deadline.