any help appreciated
Rotate sprite anti-clockwise
#1
Posted 26 February 2012 - 09:00 PM
any help appreciated
#2
Posted 26 February 2012 - 09:03 PM
if(!timer) {
image_angle = (image_angle + 1) mod 360
timer = TIME;
}
timer -= 1;
#3
Posted 26 February 2012 - 09:17 PM
if(!timer) {
image_angle = (image_angle + 1) mod 360
timer = TIME;
}
timer -= 1;Thanks, Does it have to been in a create event?,
#4
Posted 26 February 2012 - 09:58 PM
Edit: but put timer = TIME in the create event
Edited by thegame, 26 February 2012 - 09:58 PM.
#5
Posted 27 February 2012 - 12:10 AM
It goes in the step event.
Edit: but put timer = TIME in the create event
Sorry, what do you mean by timer = timer . should that by in executed scripted?. Sorry if am asking to much question, am really new to this.
It goes in the step event.
Edit: but put timer = TIME in the create event
Sorry, what do you mean by timer = timer . should that by in executed scripted?. Sorry if am asking to much question, am really new to this.
Thanks, I manage to get it working, but how do you get in to rotate in the center, instead of pivot point and change speed as well? Thanks in advance
Edited by xot, 27 February 2012 - 07:42 PM.
#6
Posted 27 February 2012 - 12:43 AM
As for changing speed...
if(!timer) {
image_angle = (image_angle + 1 /* Replace this 1 with a higher number or lower the amount of time to make it faster, for slower do the opposite */) mod 360
timer = TIME;
}
timer -= 1;Just so you know, this should be on the Novice and Intermediate forum... not the Advanced one... Have you read the GMC rules? It also says a few things about not double posting...
Edited by thegame, 27 February 2012 - 12:44 AM.
#7
Posted 27 February 2012 - 07:52 PM
As thegame pointed out, this topic should have been posted in the Novice and Intermediate Users forum, which is were I have moved it. Also, if you find your self wanting to post twice in row, please edit your previous post rather than "bumping" your topic. We have very specific rules about that. Take some time to look over the Rules forum and the rules of any specific forum in which you wish to post.
http://gmc.yoyogames...hp?showforum=19
I hope you find the GMC forums a useful resource.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











