Rotating Layers

This forum is currently in read-only mode.
  • Just messing round with Construct and thought I'd try messing with rotating layers for a platform game, but I've run into a problem.

    When pressing spacebar Layer 1 rotates +90 - Which is just what I wanted however the platform solids don't rotate.

    Here's some pics.

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/normal.png">

    <img src="http://i19.photobucket.com/albums/b170/mr_flibble_hhah/180degrees.png">

    As you can see the guy(on layer 2) in pic 1 is stood on the Green solid platform marked 1 & when the layer is rotated 180 degrees he is still stood on the green solid platform that should be way above his head.

    Is there any way of fixing this as it seem that although my green solid move cosmetically the bounding box doesn't move.

  • Obvious question: Are those objects not on layer 1? You said you're only rotating layer 1, so if they're on layer 2, they're not going to move.

  • Obvious question: Are those objects not on layer 1? You said you're only rotating layer 1, so if they're on layer 2, they're not going to move.

    All objects are on Layer1 apart from the platform guy and the boxes with the physics behaviour which are on layer2.

    My cap is here if anyone can help.

    http://rapidshare.com/files/261679522/l ... roblem.cap

  • Well, it seems that you are rotating layer 1 only. You probably want to rotate both layers.

  • http://rapidshare.com/files/261679522/l ... roblem.cap

    <img src="http://files.getdropbox.com/u/888303/rapidshit.gif">

    Why you use Rapidshare? Waiting 40s for download and download limit is not great you know

    Edit: As for rotating, it seems the Box object is rotating with layout but not collision mask.

  • Well, it seems that you are rotating layer 1 only. You probably want to rotate both layers.

    Can't do that because the platform guy should always be unmoved by the world(layer) rotation, thats why he's on layer 2.

    >

    > http://rapidshare.com/files/261679522/l ... roblem.cap

    >

    <img src="http://files.getdropbox.com/u/888303/rapidshit.gif">

    Why you use Rapidshare? Waiting 40s for download and download limit is not great you know

    Edit: As for rotating, it seems the Box object is rotating with layout but not collision mask.

    I have a Rapidshare account

    Yeah that's the problem. But is it a bug or is it fixable by someone cleverer in Construct than me.

  • People love when you use Dropbox, and you'll love using it too.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Signed up. Thanks.

  • Signed up. Thanks.

    As for a workaround just dont use Box object if you gonna rotate something, just use one Sprite that you can resize freely (you can resize multiple copies of one sprite and they wont interfiere with other copies).

  • > Signed up. Thanks.

    >

    As for a workaround just dont use Box object if you gonna rotate something, just use one Sprite that you can resize freely (you can resize multiple copies of one sprite and they wont interfiere with other copies).

    No still the same thing unfortunatley. Sprite rotates fine but doesn't change it's collision/bounding box, the platform guy still stands on the platform that should have rotated.

  • Box object is not the most suitable for such situations, I believe Deadeye handled the rotation and stuff in his Vert project. He was stuck for a while due to rotating platform stuff or something, I don't know if he resumed his work now.

    If anyone knows anything about rotating in a platformer, that'll be him.

    Also, davioware: if that is your referral, watch out for SoldMafiaBoy

  • Oh yeah i just figured out, Deadeye was not rotating layouts but rotating view and changing gravity. Still for a layout rotating its a bug.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)