Shubi's Recent Forum Activity

  • This is a game i have created with construct 2.Its name is Swipe Drive.Its pretty simple and fun!

    https://play.google.com/store/apps/details?id=com.sr.sd

    PS: If you visit this and like it then please download to support!

    Thank you

  • never mind sir! GOT IT!

  • never mind ! got it! just had to change some angles to negative!

  • This could be a way to do it:

    Just replace centerx/centery with the imagepoint x/y.

    Dear Rojohound,

    I loved what you have shared here and it have helped a lot but i am not able to solve the same equation if i want rotation to be anti-clockwise.

    i have replied to the post in the link you shared, i thought i was not clear there so i m posting here

    can you please post an equation that would do the same but for anti-clockwise rotation

    it would be a real help as my game mechanism depend completely on it.

    Thank you in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wouldn't it be simpler to keep the origin as the center and have another sprite for the death animation?

    Or leave it as is and when you change to the death animation just move the sprite?

    You can use a little math to rotate a sprite around any point if you wish to do that instead.

    https://www.siggraph.org/education/mate ... 2drota.htm

    global number centerx= 100

    global number centery= 100

    global number ang= 10

    every tick

    --- sprite: rotate ang degrees clockwise

    ---- sprite: set position to ( (self.x-centerx)*cos(ang)-(self.y-centery)*sin(ang)+centerx, (self.x-centerx)*sin(ang)+(self.y-centery)*cos(ang)+centery )

    Sir,

    I am very happy to find this post it helped me a lot , but this helped me to turn right using an imagepoint but it does not work for turning left and am having real trouble in setting up the equation for the same.

    i thought making it negative would do it but nope!

    Can you please please help me and post an equation for Left Rotation ?

    It would be very helpful as i have spent all day on it and haven't go it working yet!

  • I am from India , a game developer.

    I am literally here in search for an answer to my problem.

Shubi's avatar

Shubi

Member since 9 Dec, 2016

Twitter
Shubi has 2 followers

Trophy Case

  • 8-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies