Need help
Posted: Sun Apr 07, 2013 1:20 am
I am trying to create my first game. It is a top down shooter with only keyboard controls. I am still far from finishing the game but I immediately have some problems. What I wanted to do but can't are:
First, I wanted my character to shoot in whatever direction it is facing. My problem is instead of shooting a single bullet (BAttk), it shoots in all direction that I wrote on the script editor. As if it doesn't check about the conditions that I put or all the conditions are true.
I want it to shoot depending upon its facing. But if you press down Right and Up at the same time, it doesn't even create bullets(BAttk), different from the other two combination directions.
I also wanted to use timer in order to have a cooldown for each attacks, but it doesn't work.
Second is respawn. For every time the character leaves the arena(collision finish), he will die but will respawn again after 3 seconds. But again I can't put the timer to work but he is respawning (I don't know if I made a correct method in doing timers).
-------
I am open for total change of codes or starting from scratch again.
Every help is really appreciated.
First, I wanted my character to shoot in whatever direction it is facing. My problem is instead of shooting a single bullet (BAttk), it shoots in all direction that I wrote on the script editor. As if it doesn't check about the conditions that I put or all the conditions are true.
I want it to shoot depending upon its facing. But if you press down Right and Up at the same time, it doesn't even create bullets(BAttk), different from the other two combination directions.
I also wanted to use timer in order to have a cooldown for each attacks, but it doesn't work.
Second is respawn. For every time the character leaves the arena(collision finish), he will die but will respawn again after 3 seconds. But again I can't put the timer to work but he is respawning (I don't know if I made a correct method in doing timers).
-------
I am open for total change of codes or starting from scratch again.
Every help is really appreciated.