HELP ME! Shooting left and right where ever it facing

OmFgiTzLonGzOmFgiTzLonGz Member Posts: 0
edited November 2014 in Working with GS (Mac)

Hi, I am having some problem and i need help here. What i wanted to do is...

making my 'Player' Actor to able to shoot out an 'SpawnActor' to its Left while its facing left. making my 'Player' Actor to able to shoot out an 'SpawnActor' to its Right while its facing Right.

help please thanks!

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited November 2014

    I stopped helping so much around here a while back because of several reasons but Im sure a moderator or someone will chip in as its really easy to do.

    You might be warned about starting the same thread 6 minutes after no one replied to the last one :pensive:

    Be patient and I'm sure someone will answer.

    Darren.

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    Well, you don't have to be a moderator to help around here. ;)

    First, how are you detecting which direction the player is facing? How is your code set up? Once we know how you're detecting the direction, the rest is easy.

  • jsorr2jsorr2 Member Posts: 279
    edited November 2014

    add 'real (or integer) attribute' to actor

    rule:
    while character moves left
    change real attribute to 1

    rule2:
    if real attribute = 1
    loop while real attribute = 1
    spawn actor infront of actor

    do the same for right, except make real attribute 2

    if you want your actor to shoot as soon as the game starts, make the actor face left to begin with, and change the real attribute to default 1.

Sign In or Register to comment.