R0J0hound's Recent Forum Activity

  • It seems to work here, or is the problem that the player stops short of the obstacle?

  • In your example only the last sprite is getting colored because only the most recently created sprite gets picked. So the trick is to assign a color filter as the sprites are created.

    Here are two different ways to do it:

    + Button: On Button clicked
    -> System: Create object Sprite on layer 1 at (100, 100)
    -> Sprite: Set filter to cyan
    -> System: Create object Sprite on layer 1 at (250, 100)
    -> Sprite: Set filter to cyan
    -> System: Create object Sprite on layer 1 at (400, 100)
    -> Sprite: Set filter to cyan
    [/code:3bh1xu44]
    [code:3bh1xu44]+ Button: On Button clicked
    + System: For "" from 1 to 3
    -> System: Create object Sprite on layer 1 at ({100, 250, 400}@LoopIndex, 100)
    -> Sprite: Set filter to cyan[/code:3bh1xu44]
  • lucid the slowdown is due to a fix I submitted (SVN revision 153) for a bug where the collision mask did not change when the frame changed with animated sprites. The fix was first in construct 0.99.85.

    Here's the tracker:http://sourceforge.net/tracker/?func=detail&aid=2974232&group_id=207820&atid=1003219

    My fix was to recalculate the collision mask every time the frame changed. Before, the collision mask would only be recalculated when a sprite's size or rotation changed.

    If you uncheck "loop" or set "animation speed" to zero for the animations that are only one frame your fps should go back close to what it was.

  • http://dl.dropbox.com/u/5426011/examples/doubleattack.cap

    req 0.99.9

    or in pseudo code:

    + MouseKeyboard: On key Enter pressed
      + Anakin: Animation "Lightsaber1" is playing
        -> Anakin: Set 'attackAgain' to 1
      + System: Else
      + Anakin: [negated] Anakin: Animation "Lightsaber2" is playing
        -> Anakin: Set animation to "Lightsaber1"
    + Anakin: Animation "Lightsaber2" finished
      -> Anakin: Set animation to "Idle"
    + Anakin: Animation "Lightsaber1" finished
      + Anakin: Value 'attackAgain' Equal to 1
        -> Anakin: Set animation to "Lightsaber2"
        -> Anakin: Set 'attackAgain' to 0
      + System: Else
        -> Anakin: Set animation to "Idle"[/code:2nhaxrna]
    
    If that isn't what you were looking for let me know.
  • [quote:2f63x61e]Is family picking "bug" here again?

    This bug? http://sourceforge.net/tracker/?func=detail&aid=3023008&group_id=207820&atid=1003219

    or are you talking about another bug?

    lucid, is that fps slowdown only in this version? What version of construct were/are you using for the better fps?

  • Just use the private variable condition "pick with lowest value".

    so your event would look like this:

    + Bullets: On collision between Bullets and Bullets
    + Bullets: Pick with lowest ''Power''
    -> Sprite: Destroy
    [/code:1ngnyzu7]
  • Very cool!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When an else event has subevents it will not function, it is a know bug and is on the bug tracker.

  • With unbounded scrolling on, do this to scroll to Sprite but not scoll past the edges of the layout.

    + System: Always (every tick)
    -> System: Scroll to X Clamp(Sprite.X, (ScrollXRight-ScrollXLeft)/2, LayoutWidth-(ScrollXRight-ScrollXLeft)/2)
    -> System: Scroll to Y Clamp(Sprite.Y, (ScrollYBottom-ScrollYTop)/2, LayoutHeight-(ScrollYBottom-ScrollYTop)/2)[/code:d47dogvp]
    
    Or for example you have a layout of size 640x480 and set the zoom to 200,200 then:
    [code:d47dogvp]+ System: Always (every tick)
    -> System: Scroll to X Clamp(Sprite.X, 160, 480)
    -> System: Scroll to Y Clamp(Sprite.Y, 120, 360)[/code:d47dogvp]
  • Well, you can access private variables from python only with objects that have been recompiled since the fix was added. Initial tests show that accessing private variables in python work in version 99.9 with Sprite, Panel, 3dObject and Light. However it doesn't work with Text, Canvas, 3dBox or TiledBackground. So private variable access from python is about halfway there.

  • With the 99.9 release you now can access private variables from python.

  • Cool new build.

    Figured out how to use the ribbon object, very nice.

    http://dl.dropbox.com/u/5426011/examples/ribbonExample.cap

R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 155 followers

Connect with R0J0hound