The Daily Click ::. Forums ::. Klik Coding Help ::. Rotation Problem
 

Post Reply  Post Oekaki 
 

Posted By Message

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
27th February, 2011 at 18:45:39 -

So im trying to make spinning buzzsaws and im using the set angle to angle of buzzsaw -5. But i think because of this the player gets by empty space. Does transparent space become part of the object when it is rotating or something?

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
27th February, 2011 at 19:25:58 -

The collision mask of an object rotates with it.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

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
28th February, 2011 at 01:07:28 -

yea thats what i was trying to get at. Is there a way to stop that?

 
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
1st March, 2011 at 22:32:01 -

Does anyone know how to stop the collision mask from rotating aswell?

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
1st March, 2011 at 22:38:28 -

You can't stop the collision mask from rotating, you can either create another object and stick it on sawblade to use for collision mask.

or uncheck: use fine detection ; that would force the object to have box collision based on his x,y size.

 
Code me a sausage!

nim



Registered
  17/05/2002
Points
  7234
5th March, 2011 at 06:08:28 -


Originally Posted by Jon C-B
Does anyone know how to stop the collision mask from rotating aswell?



How about storing the current angle or the rotating sawblade in an Alterable Value? Then checking the collisions and reverting the sawblade back to what the user sees before the screen is updated. No time to make an example but I hope this makes sense:

Event 1:
Set angle of (sawblade) to 0
Set animation to (collision mask animation or whatever)

Event 2:
Check for collisions between (sawblade) and (player)

Event 3:
Set animation to (default sawblade animation)
Add 1 to Alterable Value A (sawblade)
Set angle to Alterable Value A

 
//

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
5th March, 2011 at 16:16:01 -

Boom! Nim's solution should work.

Another idea would be to just store the rotations as an animation. Open the animation editor, right click on the first frame and select rotate.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click