mOOnpunk's Forum Posts

  • Do you mean how far the mouse is over the object? If i understand you correctly you could try something like this,

    x = sprite.BBoxleft + (mouse.x - sprite.BBboxleft)

    y = sprite.BBoxTop + (mouse.y - sprite.BBoxTop)

  • I'd also love this for macOS, I haven't been able to find an equiverlant and Scirra Ashley declined my suggestion on how to make things easier. https://construct3.ideas.aha.io/ideas/C3-I-607

  • You do not have permission to view this post

  • Oh i see.

    Normally in games with a limited text box size, like a dialogue box, they show a bit of text then the player clicks and it deletes the old text and shows some more.

    An alternative is to have a scroll box.

    scirra.com/tutorials/1217/custom-scrollbar-or-slider

    Use "force own texture" and "destination out" to hide text outside of the scroll box area.

    But if you want to change the text size to always fit i guess you'd have to set the text, then get the text width, see if its greater than the window size, if it is then resize the text and check it again until it fits. You could do this in a loop normally so it appeared to happen instantly however its a bit tricky with the text object as it doest update until the next game loop, hence the wait 0.1 action.

  • You can set the text box size to the text pixel size plus add a margin amount.

    TextWidth

    TextHeight

    Return the size of the actual text content within the text object's rectangle. Note the Text object must be drawn before these have the correct values. If you set the text then immediately access these expressions, they won't yet have the correct value. Adding a Wait 0.1 seconds action will usually solve this.

  • Thanks newt i’ll give it a go.

  • Why isn’t the drawing canvas rotatable?

    I’d like to be able to make an object by conbining lots of sprites. Rather than pinning or containing lots of objects together I should be able to paste them into one drawing canvas then use that as a sprite.

  • Volbyte > much better revenue share for indies and less crowded marketplace than Steam

    You know as soon as the store opens everyone with a game on steam will just upload it to epics as well.

    They could give devs the option to give out keys like steam, so If you already have the game in your steam library you’d get it free on epics store.

  • I believe it means if you make over $5000 on a game you need to purchase the business licence.

  • Yes you can, but if you make over a certain amount ($5000) you need to upgrade to the business licence.

  • There are examples of weighted probability on the forums if you do a search.

    The very simplest form is something like

    int(choose(1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,4,4,4,5,5,6))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Getting better and better thanks.

  • Sometimes actions and conditions are not accessible depending on your event.

  • wow stunning, great work.

  • Thanks for the encouraging comments!

    I've now added the ability to pick up and drop minions. A single click to pickup and again to drop, holding down shift allows you to pick up more than one.

    Shadow needs a bit of work.

    Next i'll add slapping them to speed up work.