keepee's Recent Forum Activity

  • I had actually tried doing this but assumed it wasn't right because what i was trying to achieve didn't work.. I brushed it aside and made the problem more complex in my head .. (but your reply made me revisit it and I found out just now it didn't work because of how i'd set up other events and vars)

    ..(also because i'm a dumbass)

    thanks guys :)

  • Okay I'm aware there's been quite a few questions relating to angles and rotation recently, but I did a search and couldn't find anything regarding this specifically...

    <img src="http://dl.dropbox.com/u/53374990/angle%20problem.png" border="0" />

    As you probably already know, using the "angle" expression... [angle(x1, y1, x2, y2)] returns an angle based on the circle on the left.. (if x1,y1 was in the centre of the circle)

    But my question is how would you go about rotating this? along with the 180 to -180 cut off point?

    So if I wanted it to rotate 90 degrees for example, it would give the values shown in the second Circle.

    Thanks in advance!

  • I'm 22.. Been interested in games design ever since Doom.

    Older friends introduced me to The games factory (mmf) when I was around 18, Loved it.. I enjoy creating the art and and music too.

    Although I *never* finish anything.. -hopefully that changes this year :)

  • just showing off some sinus and cosinus to scare our dear n00bs.

    I knew it! hah.

  • Woo I actually came here to say I solved it, (although it accelerates smooth and then stops abruptly)

    But I guess I can have both types of movement :D

    Thanks guys! Yanns events worked.. although kyat had something very similar.

    Now I need to get my head around exactly what I just input here..

    thanks again.

  • Sorry, I edited the original post to be a bit clearer...

    Did you see the comment in the events? I know this is what is causing it.

    When I said "in the confines of 180 to -180", i just meant the value of the target..

    The problem is I want it to be able to go *past* the 180-180 threshold, instead of spinning all the way around, or simply stopping rotation.

  • Yann: What was the benefit of not using the "apply force at angle" action?

  • In construct classic there was an action for this, so it's possible.. just has not been added.

  • Hi!

    http://dl.dropbox.com/u/53374990/Rotarything.capx

    *Edit* cap no longer rotates due to changes in r75. Recreating the "rotate layer.." events fixes it.

    So holding down Q or E (or the numpad buttons) changes the layout angle target.. and the actual layout then follows it.. (These variables are GravTarget and GravCurrent)

    This works fine if you allow the target angle to go above 180, but for other reasons, I need the angle to stay in the confines of 180 to -180

    *but* when the target passes over the +180 to -180 threshold at the very top, the actual angle spins back, and takes the long way around... instead of over the threshold..

    Am I stupid? I feel like this should have a simple solution but I just can't think

    Thanks in advance!

  • Okay ash

    thanks for replies all

    Yann, now that I tried opening your cap I realised you used a plug in..

    When you sent me this in chat I didn't know.. I was so confused as to how you did it.. cool though

    also kbd.. I'm not sure I understand you? Are you talking about making sprites the right colours in photoshop beforehand? Because if so that's not what i'm after.. I'd like them.. uhh "dynamic" if you know what I mean :p

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, thanks for the quick reply!..

    unfortunately, i've already tried doing this.. whilst it looks okay for light, somewhat muted colours, it's not exactly how light works (it's kind of like how it would work with thin layer of fog being lit up and washing over the existing colours... see how it brightens the dark "html" text?..when really black should absorb all light and remain black)

    Here's kind of what i'm aiming for here:

    before dl.dropbox.com/u/53374990/before.png

    after dl.dropbox.com/u/53374990/after.png

    even though this is a kind of garish and extreme example, (plus, again i don't think it's entirely accurate), it would still allow for much more vivid lighting (like deep red emergency lights)

    The red blue n green are additive to each other, surrounded by black, on an overlay layer atop the 'before' image.

    The more i'm thinking about it the less it seems possible... without the equivalent of an overlay blending mode D: ..unless, of course there's some cunning trickery

  • *by effects i'm referring to the (additive, copy, xor, destination over.. etc etc)

keepee's avatar

keepee

Member since 6 Jan, 2012

None one is following keepee yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies