Yann's Recent Forum Activity

  • 'cause you can't get the focus on the textbox if it's either invisible or out of screen.

    You could replace the textbox object with a text variable and the keycode plugin maybe, but I didn't want to use a third party plugin for my example. So I had to stick to the textbox even if I had to let appear a bit on the bottom of the window.

  • Weishaupt What do you mean? I don't do anything...

  • Actually it simply deletes the first line as long as you exceed the line limit (:

  • If you plan on having many button you might want to save this kind of data a more efficient way like:

    1/ bit flags in a global number

    2/ global array

    3/ global tokenized text

    so you keep track of things from layout to layout

  • Yeah exactly, it's an expression inside c2 all expression follow the same rule/syntax so & is a concatenation operator, and you can concatenate any thing so you can use global &MyVar& or instance &Sprite.myVar& or anything you want.

  • for the image point thing, I was just being cautious, I hadn't checked when I wrote that.

    There's indeed a tiny offset when you fall. Offset like that often happens for very fast movement, and in your case I don't think it will really be that noticeable once you make the hitbox invisible.

    It will still be accurate enough I think.

    Anyway, mmmmmm

    ok I found the issue. The pin behavior seems to work after the hitbox positionning event occur. So the hitbox is always one frame late.

    Solution: don't use the pin behavior and make sure you position the animation sprite to the detection sprite before positionning the hitbox.

  • Probably because you only spawn it, you have to set its position to the image point as long as the attack is playing... And you should have this image point on all your attack animation frames.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Should be interesting:

    closeDetection.capx

  • Not yet (:

    In cc there was filter. It was a color put on top of your sprite (probably with multiply mode but I'm not sure)

    But in c2 you can't do that yet, pixel manipulation is a pixelShader thingy that works with the graphic card. So it would be a webGL thing... and it's not yet implemented in c2 (dunno if it is in webGL yet)

  • create a boolean 'controlled' in your circle object with default false except for the one you want to control at start of layout

    And then if circle collide with circle, toggle 'controlled'

  • Or you can just copy/paste an already quoted text and hit Enter (shortcut to the 'Done' button) (:

    (but don't forget to delete any " inside your text)

  • When that happens I just put the two event sheet side to side (neat thing when you want to compare event sheet by the way) and drag&drop the global variable first and then the events.

Yann's avatar

Yann

Member since 31 Dec, 2010

Twitter
Yann has 5 followers

Connect with Yann