The Daily Click ::. Forums ::. Klik Coding Help ::. Creating rotated directions
 

Post Reply  Post Oekaki 
 

Posted By Message

alastair john jack

BANNED

Registered
  01/10/2004
Points
  294

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!VIP MemberMushroomI am an April Fool
11th December, 2009 at 09:00:23 -

When I tried creating rotated directions, it makes them all ugly! It creates new colours that I never put in my image before! I don't think it was like this in MMF1/TGF.
Is there a way to not make it as blury/ugly?

 
lol

alastair john jack

BANNED

Registered
  01/10/2004
Points
  294

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!VIP MemberMushroomI am an April Fool
11th December, 2009 at 09:02:28 -

Hey guys, I'm talking about the "create rotated direction" thing for Active objects.

 
lol

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
11th December, 2009 at 09:39:26 -

rotate in something else then add them all in individually. or just rotate the object at runtime.

 
n/a

Levirules



Registered
  27/09/2008
Points
  37
18th December, 2009 at 17:37:54 -

control the angle with code at runtime. It will generate the rotated images on the fly with 360 directions. Creating rotated frames in the animation editor has always sucked, KnP through MMF2.

The code you're looking for is in Scale. Try this to see what I'm talking about. Start a new project and add an active object. Add this code in the Events Editor:

Always:
-Add 1 to Alterable Value A
-Set angle to Alterable Value A("Active") (Quality = 1)

Alterable Value A = 359
-Set Alterable Value A to 0

This will constantly create rotated directions of the active object. It'll rotate at an odd direction if you don't set the Hot Spot to the center though.

 
n/a

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
19th December, 2009 at 02:32:47 -

Couldn't you just do

Always-
Set angle to Angle( "Active" )+1
It also seems that they look better the larger the images are. 118 by 118 looks really good

Oh, and thanks for posting you code tho, I never used the angle or scale before.

Edited by Jon C-B

 
n/a

Levirules



Registered
  27/09/2008
Points
  37
19th December, 2009 at 21:21:06 -

yea that should work too. Sometimes I go straight to the use of variables, because that's what I was taught to do in real programming

 
n/a
   

Post Reply



 



Advertisement

Worth A Click