I can’t seem to figure out how to make a function or something to make an object rotate all the time by 20 on a touch even…
Can someone please help me out??
I’m new to Corona SDK and new to programming but I know a little to get by… No the Big expert on Functions…lol BUT I’m glad to be part of this community and I’m looking forward to meeting some fun people…
[import]uid: 45615 topic_id: 8715 reply_id: 308715[/import]
I figure this out…
[code]
local _H = display.contentHeight;
local _W = display.contentWidth;
local square = display.newRect( 320, 480, 250, 25 )
square:setFillColor( 255, 0, 0 )
square.x = _W/2; square.y = _H/2;
local rotate = function(event)
square.rotation = square.rotation + 20
end
square:addEventListener(“tap”,rotate)
[/code] [import]uid: 45615 topic_id: 8715 reply_id: 31767[/import]
Hey, welcome to the community!
Well done on figuring out your problem on your own
It’s a good feeling when things work, isn’t it?
Anyway, while everyone here is a helpful and friendly bunch, the forums can sometimes move a little bit slowly - especially at the moment as new threads are being buried by spam. (Hopefully that will get sorted out soon!)
I hope to see more of you around - well done again for solving your problem 
Peach [import]uid: 10144 topic_id: 8715 reply_id: 31803[/import]
Hey thanks, spam ? wow we need to get does out… That way this can be a great community to learn, since that’s my focus to ask for help on this community when i’m lost and can’t figure stuff out… [import]uid: 45615 topic_id: 8715 reply_id: 31829[/import]
Hey again,
Don’t worry - the Ansca team have been working ridiculously hard this month (they always do, but even more so at the moment!) as you can see here; http://blog.anscamobile.com/2011/04/team-corona-hard-at-work/
Previously spam was immediately sorted out but we just have to be a tad more patient for the next little while.
Very soon I am confident that spam will disappear just as soon as it appears - but until then remember, patience is a virtue 
Peach [import]uid: 10144 topic_id: 8715 reply_id: 31864[/import]