Boomlet's Forum Posts

  • Ah clever, yes that will work. Thanks!

  • Hi

    Does anyone know if there is an expression or simple way to round an angle to the nearest 90 degrees?

    Thanks

  • How did I not figure that out?

    Thank you so much

  • Hi

    This feels like it should be really easy but it's got me stumped. I simply want to get the current animation name of one sprite and assign it to another.

    With frames it would be set animation frame to Sprite.AnimationFrame.

    What would be the equivalent of doing this for the animation name?

    Thanks!!!

  • That totally worked - thanks

  • Aphrodite - thanks, yes that looks like it could work. I'll give that a go.

  • ALAYRA Games

    Yes - relative to it if it moves.

  • Just to be super clear, I want to calculate the co-ordinates of the orange square.

    [attachment=0:11531gzl][/attachment:11531gzl]

    I know:

    • Green square co-ordinates
    • Angle (potentially any value between 0 and 180 (+ or -)
    • Distance

    Thanks!

  • Hi

    This seems like it shouldn't be that hard but I feel like I've hit a wall. Any help would be gratefully received.

    I want to position sprite01 relative to sprite02

    Sprite01 has two local variables: angle, and distance.

    I want to position sprite02 relative to sprite 01 according to the angle and distance stored in the local variables of sprite 01

    Should I be using trigonometry here or am I missing something really obvious?!

    Thanks

  • Yann - Thank you so much for this. I'm genuinely blown away that someone would go to all this effort to help out <img src="smileys/smiley4.gif" border="0" align="middle" />

    It definitely works exactly as required and more importantly it's given me something tangible to start playing around with. If I can do anything else clever with it then I'll definitely share.

    Thanks again for your help - this forum rocks <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • sqiddster - Thanks also. Yes this is a definite risk. I have decided to change the design slightly so I don't need full object overlaps for this very reason. I'm going to use several 'sub-objects' instead which will achieve the same effect.

    Cheers

  • Thanks KaMiZoTo - that's a brilliant idea. I think I can integrate that idea into the design so that it achieves the same outcome that I'm looking for.

    Cheers! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Ok, that's interesting, thanks. Arrays I'm ok with but I'm a little unsure about the pixel tracking. Would you be able to elaborate a little more about how I might do this?

    Thanks

  • Thanks. If it helps with efficiency/CPU I should add that I will be limiting the number of circular sprites that can be displayed on screen at one time. Probably no more than 20. If needed, I could reduce this even more.

  • Hi

    I think this may be my first post on here so - hello!

    I�ve been using C2 for a little while now and thanks to all of the amazing tutorial and forum posts by the community, have managed to figure out everything I have needed to without having to resort to the forums - so thank you! I have however, now reached a point where I am not really sure how to continue and as such would be really grateful if someone could give me a little nudge in the right direction as to what I might need to do.

    The demo I have is quite simple. Every time you touch the screen it creates a circular sprite (which scales the longer you hold it down � effectively a brush). I also have a different sprite (say a rectangle) on screen that will eventually be covered by the circular sprites if enough are drawn over it.

    What I am try to achieve is this:

    I would like to detect when the rectangle has been completely covered by circular sprites as illustrated in the image attached below.

    <img src="https://dl.dropbox.com/u/57403205/TestExample.png" border="0" />

    I have tried visibility, overlaps and have looked at some of the LOS tutorials, but none seem quite right for my needs. Is there anything in Construct that might enable me to come up with a workaround?

    Thanks in advance