shoot-class

  • kroowteen
    Likes 0

    Problem Description

    How I can implementing a shoot-class for a shoot game?

    How I can make the bullet starts from the middle of the ship?

  • Sonar Systems admin
    Likes 0

    Could you provide some more information of what you want and what you currently have.

  • kroowteen
    Likes 0

    I want make a astroid game. I have creat my sprite and now I want make a bulltet starts from the middle of my sprite when I touch the display.

    In Cocos2d-x C++.

  • Sonar Systems admin
    Likes 0

    do you know how to detect when the screen has been touched?

  • kroowteen
    Likes 0

    yes i know it

  • Sonar Systems admin
    Likes 0

    Have you setup touch.

  • kroowteen
    Likes 0

    yes I configured the touch with ‘EventListenerTouchOneByOne’

  • Sonar Systems admin
    Likes 0

    Do you know how to spawn sprites?

  • kroowteen
    Likes 0

    I have implemented: the ship-sprite, the bullet-sprite, ‘Moveby’ for the bulltet to shoot, the touch when I touch of the screen.

    Now my problem is that, when I touch the ship-sprite should the bullet move but I don’t know how I implementing the command.

  • Sonar Systems admin
    Likes 0

    What does your current MoveBy do?

Login to reply