keepee's Recent Forum Activity

  • Object1.X + (object2.X - Object1.X) * 0.5

    Object1.Y + (object2.Y - Object1.Y) * 0.5

    Here's an old cap I did with everything stripped away apart from this feature..

    object 2 is the mouse.

    Changing '0.5' to a variable means you can adjust the distance.. so holding down space changes the number to 0.5 from 0.3

    dl.dropbox.com/u/53374990/mouselook/mouselook.capx

    Oh and If you want a smoother scrolling, make a separate marker object and have it move at angle.. with the speed in accordance to the distance between itself and the position written above.

    I did do one for magnification also but I can't find it..

    But I do remember it was a bit of a pain to do mouselook with magnification, because zooming out would cause the mouse to be recognised even further away and it got really sensitive the further the mouse got.

  • You could use the distance() expression to affect how much hp is damaged too.

    jus' sayin :)

  • Have the text objects on a separate layer, name it "interface" or "hud" or whatever you want.

    what's important is that you set the "parallax" rate to 0. This means it doesn't scroll with the rest of the layout.

    A parallax rate of 50 for example would scroll at half the rate of a layout at 100, suitable for backdrops.

  • sorry but there is a simpler way!

    <img src="http://dl.dropbox.com/u/53374990/fade.png" border="0" />

    [edit] just realised the 'trigger once' isn't necessary.. also needs dt

  • your wep1 imagepoint is a mile away

  • may not be the best solution but you could create a bunch of instance variables on the object.

    Target1 x,y

    Target2 x,y

    etc

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • use the "compare two values" system condition and use the 'ship.count' expression for the first value.

    if ship.count = 0 then ......

  • Having the exact same problem but with &__Cdecl insead of &__thiscall

  • numpad keys sets it in corners/ middle

  • if the frame by frame animation is basically going to be a wider image scrolling past, then you may aswell just use the larger image and have it move across, reseting it's position when it loops.

    I'm guessing that's better for fps then a ton of images for animating a full screen sprite...

  • 7Soul yep but his condition was if it's below 500 so :p

  • this is a sh*tty fix but if you add a +90 to sprite angle so..

    anglediff(Sprite.Angle, angle(Sprite.x, Sprite.y, Mouse.x, Mouse.y))

    becomes:

    anglediff(Sprite.Angle+90, angle(Sprite.x, Sprite.y, Mouse.x, Mouse.y))

    Then you can have it so if this value is above 90, then it's on the left.. if it's below 90 it's on the right.

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