get a button to rotate?

  • I've implemented a "Troll button" into the title menu of my game and I want it to spin slowly. I gave it the rotate behavior, but all it does is go in some large orbit and I can't figure out how to make it spin on it's center point.

  • Is the "center point" the actual origin? Is the image you're using actually centered (i.e. even or no transparency around the object)?

  • You see, I can't edit it to replace it's image. That's a problem in itself, but basically I cant right click it and edit the image to move the origin point.

  • oh yeah , it's a button , is it ? You need to make it a sprite ... If you want to implement a troll farm !

  • oh yeah , it's a button , is it ? You need to make it a sprite ... If you want to implement a troll farm !How can I make it a sprite and make it click-able at the same time? Yes, if you double click the layout and click on the "button" thing is what I'm using.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you add the mouse object to your project, you can use the condition "On object clicked" to make the sprite object act like a button.

  • If you add the mouse object to your project, you can use the condition "On object clicked" to make the sprite object act like a button.That's neat; but can I implement the sprite without having to re-write all my code?

    EDIT; Could I copy the button image to the sprite so that it looks like all the other buttons on the page?

  • Sure you can, but if you want it to act like a regular button you'll need 3 frames. The normal one plus one for hovering over and one for clicking the button.

    Though I would just make my own button sprites since, in my opinion, the regular buttons don't really look good in games.

    And yeah, you'll probably have to change some conditions. But replacing some button events with mouse events doesn't take too long if you just copy/paste the conditions.

  • Sure you can, but if you want it to act like a regular button you'll need 3 frames. The normal one plus one for hovering over and one for clicking the button.

    Though I would just make my own button sprites since, in my opinion, the regular buttons don't really look good in games.

    And yeah, you'll probably have to change some conditions. But replacing some button events with mouse events doesn't take too long if you just copy/paste the conditions.Sounds like I have some work to do. Thanks, though.

  • capx is always helpfull

  • capx is always helpfull

    I gave the capx. Or at least I tried; I'm not sure if it worked.

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