My character won't shoot to the left!

samuelpearce

  • *
  • Posts: 73
For some reason, I try to shoot to the left of one of my characters, and nothing happens. Please help.

Ryusui

  • Posts: 827
We can't. We don't know what's wrong because we don't know what you've done.

Behaviors would be helpful. Use Stencyl's built-in screenshot functions and the forum attachment options to provide those.
In the event of a firestorm, the salad bar will remain open.

samuelpearce

  • *
  • Posts: 73
hope this helps

Sift

  • Posts: 47
It's asking if facing left = false.
Perhaps if facing left = true?

twotimingpete

  • *
  • Posts: 1667
not too good at logic, but aren't right = true and left = false the same thing? :)

gplar

  • Posts: 1115
I second Sift&twotimingpete, Both blocks probably fire right. Change the second block to a clean otherwise. (That is if your FacingRight actor value keeps true track of direction.)

« Last Edit: June 09, 2012, 05:23:11 am by gplar »

Photon

  • Posts: 2691
I second Sift&twotimingpete, Both blocks probably fire right. Change the second block to a clean otherwise. (That is if your FacingRight actor value keeps true track of direction.)
Hold up. You are on the right track, but it is an "always" event. Since it is an "always" event, if it is a clean otherwise, whenever the fire button is not pressed it will fire to the left.

I would change the whole event to a "when key is pressed" event. Then you would only have to check facing and a clean "otherwise" would work just fine.
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

samuelpearce

  • *
  • Posts: 73
So, you guys are saying to change it to facing left = true?

froz

  • Posts: 250
You need only 1 boolean to keep information whether actor is facing right or left (unless he can face other directions too). So you can change facing left to facing right and keep that "false".

samuelpearce

  • *
  • Posts: 73
I just did it, and it works now. Thank you guys for the support!