Yann's Recent Forum Activity

  • SpriteFont use only one texture (a letter sheet) and it's all encompassed in one object. There's no real overhead I think. Under the hood It just draws some rectangle picking the corresponding texture area for each letter.

  • nonononono you need eggs,... flouuur,.... milk, a little bit of butter, salt and sugar, you mix all that and you cook them on a frying pan.

    Seriously... oven... for pancakes... get real!

  • hovering.capx

  • In mmf2 there is a global event sheet for that kind of stuff.

    Hidden in the Application property tabs

    And qualifiers aren't available in this global event sheet

  • Nice one indeed

  • Recipe maybe

    I can teach you how to make pancakes :D

  • That's not the point newt (:

    I don't want the uid I want the X of the sprite of uid 4 directly in expresion.

    that's why I wrote Sprite(4,uid).X

    I was thinking about that 'cause you could get some tricky math between instances of the same object type without having to complexify stuff with some foreach to pick things.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you get the hang of vector math it's always the same thing

    cos(a) gives you an X projection of the unit vector at angle a

    sin(a) gives you an Y projection ot the unit vector at angle a

    Just have to scale a unit vector by the magnitude (distance) you want it to be and you're done.

    (vector and position are almost the same thing... they share common notation)

  • Global Variable HandDistance = 40 // Distance between body and hand in pixel
    System: Every tick
       -> Hand: set X to cos(angle(Player.X,Player.Y,Mouse.X,Mouse.Y))*HandDistance
       -> Hand: set Y to sin(angle(Player.X,Player.Y,Mouse.X,Mouse.Y))*HandDistance
  • maybe it could be intersting to have th ability to pick by uid directly in expression.

    we can already pick by index of selected objects like :

    Sprite(2).X

    Maybe being able to have some 'absolute' picking ability with UID would be interesting

    Sprite(4,UID).X

    or even by instance variable

    Sprite(4,myVar).X

    Whe might avoid some foreach. Like this one

    <img src="http://dl.dropbox.com/u/23551572/C2/selectByInstanceVariable.png" border="0" />

  • No nothing :D I just had a "wtf" moment where I discovered that the keyboard object display the name of keys in the OS language (:

  • Haha Leer :D

Yann's avatar

Yann

Member since 31 Dec, 2010

Twitter
Yann has 5 followers

Connect with Yann