Jump to content


Photo

How to stop the "spin" when I push forward


  • Please log in to reply
7 replies to this topic

#1 ChefDavid22

ChefDavid22

    No, YOU shut up!

  • GMC Member
  • 1193 posts
  • Version:GM:Studio

Posted 02 May 2012 - 12:45 AM

Take a look at this screen shot

Posted Image

The center object is what you control.

Press:
right and it rotates right
left and it rotates left
Up and it moves forward


All I am really trying to do at this point is stop the rotation of the image_index when you press up - what i cant figure out is how to make the sprite maintain it's current index.

What happens is if you are rotating right and press up you move forward as eexpected but you continue to fly in a circle because the ship is still rotating right. So instead you have to push left, up, right, up, left, up etc. That's very cumbersome.

Edited by ChefDavid22, 02 May 2012 - 12:49 AM.

  • 0

#2 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 02 May 2012 - 12:48 AM

no key event:
in script:
image_speed = 0

  • 0

#3 ChefDavid22

ChefDavid22

    No, YOU shut up!

  • GMC Member
  • 1193 posts
  • Version:GM:Studio

Posted 02 May 2012 - 12:50 AM

I must be doing something wrong then. That was the very first thing I tried. Thanks I will look into it. Obviously it was my error somewhere then.

EDIT: Yea I kept trying to change the image_index not image_speed. Just a silly typo. Appreciate it.

Edited by ChefDavid22, 02 May 2012 - 12:54 AM.

  • 0

#4 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 02 May 2012 - 12:53 AM

I must be doing something wrong then. That was the very first thing I tried. Thanks I will look into it. Obviously it was my error somewhere then.

in release key event for (up, right, left, down):
script:
image_speed = 0
if it doesn't stop animation, there must be a screwy thing doing it!
  • 0

#5 ChefDavid22

ChefDavid22

    No, YOU shut up!

  • GMC Member
  • 1193 posts
  • Version:GM:Studio

Posted 02 May 2012 - 12:56 AM

Ha we posted at the same time while I was editing.

Yea I kept trying to change the image_index without realizing it. Just a silly typo/not paying attention. Appreciate it.
  • 0

#6 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 02 May 2012 - 01:01 AM

so problem solved?Posted Image
confused!
  • 0

#7 ChefDavid22

ChefDavid22

    No, YOU shut up!

  • GMC Member
  • 1193 posts
  • Version:GM:Studio

Posted 02 May 2012 - 01:05 AM

so problem solved?Posted Image
confused!


Indeed sir. Thanks!
  • 0

#8 creators124

creators124

    awesomeliciousmember

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 02 May 2012 - 01:07 AM

YAY!
You're welcome!Posted Image
I'm glad to help!
ask if you need to!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users