Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: (REQUEST) Windmill  (Read 1331 times)

0 Members and 1 Guest are viewing this topic.

Sinkin

Team Dekunutz
(REQUEST) Windmill
« on: October 04, 2009, 10:57:34 am »
  • Idk
  • *
  • Reputation: +5/-0
  • Offline Offline
  • Gender: Male
  • Posts: 564
I need to know how to get the "blades" on the Windmill to rotate clock-wise. Can someone help?  :)
Logged
Re: (REQUEST) Windmill
« Reply #1 on: October 04, 2009, 11:04:07 am »
  • *
  • Reputation: +12/-2
  • Offline Offline
  • Gender: Male
  • Posts: 4849
if using game maker

Put this in your step event for the Windmill

Code: [Select]
image_angle = direction;
direction = direction + 1;


If you want to make it go faster, add by 2 or 3, make it go slower us decimals .5, . 25, etc
oops forgot, GM goes counter-clockwise....just subtract instead of adding.
« Last Edit: October 04, 2009, 11:15:59 am by Theforeshadower »
Logged
  • Super Fan Gamers!

Sinkin

Team Dekunutz
Re: (REQUEST) Windmill
« Reply #2 on: October 04, 2009, 11:53:42 am »
  • Idk
  • *
  • Reputation: +5/-0
  • Offline Offline
  • Gender: Male
  • Posts: 564
Well, I tried it out but look what happend:


How do I fix that?
Logged
Re: (REQUEST) Windmill
« Reply #3 on: October 04, 2009, 11:59:27 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3374
set the sprite origin to the centre of the windmill blade sprite... assuming all 4 blades are in the same sprite.'
If it's nice and symmetrical you should just be able to click the centre button.
Logged
Quote from: Jason
Your community is a bunch of stuck up turds.

Sinkin

Team Dekunutz
Re: (REQUEST) Windmill
« Reply #4 on: October 04, 2009, 12:02:00 pm »
  • Idk
  • *
  • Reputation: +5/-0
  • Offline Offline
  • Gender: Male
  • Posts: 564
Thank you! It's working perfect! :D
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.166 seconds with 44 queries.

anything