Nice video man, I'm currently working on a Missile Command basic game for learning and I was stuck on firing the Missiles, this logic really helps. I'll try it out.
I made the game regenerate randomly re-positioning after he dies, and so when i go to kill the enemy again it doesn't get re-positioned? I'm trying to make the enemy appear after i kill it. Edit: Never mind, found out that when I was killing him the second time, the game kept spawning him in the same location and so it looked as though he was not disappearing. Now I will work on creating bullet direction and Point System ...wish me luck :D
shoot up is easy, you just have to change the void fire() values, its just cartesian plane, if you want to move in up direction, you have to set -y and you have to give the bullet speed value
Bullet vector allocate too much memory; it s néed to clear it, after using bullet and this also allocate and deallocate too much for cpu and ram; so is very useful to allocate const size of vector and just make it appear and desappear.
Nice video man, I'm currently working on a Missile Command basic game for learning and I was stuck on firing the Missiles, this logic really helps. I'll try it out.
Consider ++i instead of i++. Better performance.
I made the game regenerate randomly re-positioning after he dies, and so when i go to kill the enemy again it doesn't get re-positioned? I'm trying to make the enemy appear after i kill it.
Edit: Never mind, found out that when I was killing him the second time, the game kept spawning him in the same location and so it looked as though he was not disappearing. Now I will work on creating bullet direction and Point System ...wish me luck :D
Cool tutorials thanks!
really who are those 5 peoples?? They are super but hurt or something
ohh finally now i know
thx
Great tutorial, but it would be cool to know how to shoot up instead of only right.
shoot up is easy, you just have to change the void fire() values, its just cartesian plane, if you want to move in up direction, you have to set -y and you have to give the bullet speed value
How does Vector2F accepts moveSpeed that is INT?
Float will always accepts ints, but int didnt accept float. Thats the logic of the variables capacity:)
hey cool tutorial but i have a problem i can't see the bullets ?
i had a similar problem, my mistake was that i drew a background image over the bullets
@@mircox111 put the window.clear(); before the if statement
put the window.clear(); before the if statement
Bullet vector allocate too much memory; it s néed to clear it, after using bullet and this also allocate and deallocate too much for cpu and ram; so is very useful to allocate const size of vector and just make it appear and desappear.
Good Code: check
Uploads to Pastebin or github: Check
Commentary: Check
Explanation: Check
Subscribed?: Czech