How Do I Make My Actors Shoot?

X-rayGamesX-rayGames Member Posts: 66
edited November -1 in Working with GS (Mac)
How Do I Make My Actors Shoot?
thx evrybody dat helped me with my other question =D

Comments

  • expired_012expired_012 Member Posts: 1,802
    check out the space rocks or the basic shoot em up temples, and learn from the rules there. Its really not that hard
  • X-rayGamesX-rayGames Member Posts: 66
    i tried it i imported the laser from the shoot em up but i cant get it :(
  • WeswogWeswog Member Posts: 1,171
    all you have to do is make an actor you want to shoot then in the shooter actor put this

    When Space is pressed
    Spawn Actor

    There you go

    Cheers, Weswog
  • WeswogWeswog Member Posts: 1,171
    Also check this video out



    Cheers, Weswog
  • X-rayGamesX-rayGames Member Posts: 66
    thank you!!!
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Be warned... when spawning a lot of actors, over time the game will run to a crawl. See if you can change the bullet actor's position back to the ship when it's run its course instead of spawning a new one.
  • expired_012expired_012 Member Posts: 1,802
    Fine then ill help you. Here is a very simple description:

    2 actors

    1.player
    2.bullet

    PLAYER

    rule:
    When space is down

    Spawn actor (bullet actor)
    direction 0
    position X=0 y=32 (thats what i use)

    BULLET

    move
    90 degrees
    speed 300 relative to actor
    additive

    Timer
    every 1 second, destroy actor

    EDIT:
    TOO LATE!!!!!!!!!!!!!!!!!!!!!!!!!
  • X-rayGamesX-rayGames Member Posts: 66
    THANK YOU!!!!!
  • expired_012expired_012 Member Posts: 1,802
    To who lol? Did my description even help at all?
  • X-rayGamesX-rayGames Member Posts: 66
    YES IT DID!!!
  • expired_012expired_012 Member Posts: 1,802
    Ok, then your welcome :) See, not too difficult eh?
  • X-rayGamesX-rayGames Member Posts: 66
    not at all! how do i make a start menu?
  • expired_012expired_012 Member Posts: 1,802
    Ok so first make a new scene. Then you can make an actor, give it the behavior display text. You can then write whatever you want such as "start" or "play"

    Next you want to insert a rule that states:

    When touch is pressed, change scene to.. whatever scene you want to go to. This is just something you should start with. You can also add an instructions actor, etc all leading to different scenes
  • X-rayGamesX-rayGames Member Posts: 66
    thank you! ejoy puerto rico!!!
Sign In or Register to comment.