laser firing problem

FrimanFriman Member Posts: 55
I'm trying to make a prototype game and as description says I have problem with firing my weapon, my laser upwards.
Then I'm trying to firing it goes to the right of my player object, gets stuck, dosen't move anywhere and makes a "track" that I made even thicker.
I have added my project below so you could get a quick look at it.

Cheers!

https://www.dropbox.com/s/2lpy9dbcktd20iv/Project_Re_Imgaination_1.6.zip

Comments

  • PaxPaxPaxPax Member Posts: 106
    Having difficulty understanding exactly what you are asking. Here are 'guesses'.

    Player spawns 'laser' to the right of 'player' instead of on top..... Your spawn behaviour is incorrect. Drag spawn behaviour into player and do not add anything to 'direction' or 'x and y position' . This will spawn laser in same position as player. If you want it to spawn at the 'tip' of player than adjust your y position - plus 35 or something ...

    To have the laser move upwards, put the appropriate behaviour in your laser actor not your player actor.



    Hope this helps!
  • FrimanFriman Member Posts: 55
    To clarify, yes I want my laser to fire at the top of my player object and I want my laser object to travel upwards
  • FrimanFriman Member Posts: 55
    update:
    Then I spawn the lasers, it generates a big bunch and causes the game to lag for couple of seconds and then returns to normal.
    I will add a link below for you to check it out.

    https://www.dropbox.com/s/0xtnjboh6s7t3l5/Project_Re_Imgaination_1.7.zip
  • NovicaStudioNovicaStudio Member Posts: 174
    Ah
    I see your problem. you have your laser bullet spawning more laser bullets. What you want to do is delete all the code in the laser bullet that makes it spawn more bullets, and instead, make the code in there a move behavior that moves 90 degrees so it goes upward.

    Here is my redone project of your game. https://dl.dropboxusercontent.com/u/36554169/Project_Re_Imgaination_1.6.zip
  • FrimanFriman Member Posts: 55
    @NovicaStudio
    Thanks for the help!
Sign In or Register to comment.