GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Multiple Problems

mdoetsch97mdoetsch97 Posts: 2Member

First, I was wondering how to make an actor rotate equally with another actor while only pressing one key.
Second, I want to fire a bullet in the direction I am facing but can only get it to shoot upward no matter where I am facing.
If you can help it would be greatly appreciated, Thanks.

Comments

  • zweg25zweg25 Posts: 738Member
    1. Look at @Socks link machine.
    2. Spawn the bullet in the direction relative to the actor and have the bullet move in the direction relative to the actor
  • mdoetsch97mdoetsch97 Posts: 2Member

    Thanks @zweg25 it worked. One more question, how do i make my bullet go just by pressing a key once. Currently, I must hold in the key for the bullet to travel and if I release the key, the bullet comes to a complete stop.

  • tatiangtatiang Posts: 11,791Member, Sous Chef, PRO, Senior Sous-Chef

    In the bullet actor, do not put the Move (or similar) behavior inside of a rule. That will make the bullet move on its own without any input. The key should just be to spawn the bullet from whatever actor you're using for that.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.