R0J0hound's Recent Forum Activity

  • To stop the loss of momentum set the deceleration to 0 when you jump and back to what it was before when you land.

  • It's different in r103 because a bug fix of this issue:

    http://www.scirra.com/forum/top-level-event-bug_topic56490.html?KW=

    As it is now I think it's a very logical behavior as events are evaluated from the top down.

    If you don't want the circle to be clicked you can change the order of the events.

  • arcalaus

    You could use the Sprite.PickedCount expression with the system compare condition to see how many are picked.

    Those conditions work flawlessly for me. What other events are you using?

  • They do work in the same event but you need to change the order to

    "compare instance variable" then "pick random instance".

  • You can emulate key presses with the "simulate control" action for the platform and 8direction behaviors. For general simulating mouse and keyboard controls I would set some state variables for each control and use the variables in my events instead of the mouse or keyboard conditions. Then simulating a control would be as simple as setting a variable.

    I don't think simulating the controls would give an exact replay unless the game ran at the exact same framerate the whole time.

    If you want just a visual playback then the game state is unimportant. You just need to save the position,angle,size,opacity or anything that can change visually for each object on screen every frame.

    hoanganh17 you say it's for game testing, could you give an example where it would be useful for testing?

  • Images are saved to spritesheets to save VRAM in C2:

    http://www.scirra.com/blog/87/under-the-hood-spritesheets-in-construct-2

    Music and sounds likely take the same amount of space as their file sizes. There is no need to fully decompress an audio file in memory. Only the bits of the sound that will be played soon are decompressed and sent to the sound card to be played.

  • The 0:7 is the column:row in th .fx file of the error and "No precision specified for (float)" is the error.

    I found this page that seems relevant:

    http://learningwebgl.com/blog/?p=2507

    Add this line to the top of your shader and it won't assert.

    precision mediump float;

    Hope that helps, from best I can tell this is a subtle difference between webgl glsl and opengl glsl.

  • Here is a capx of the methods I wrote about:

    http://dl.dropbox.com/u/5426011/examples14/destroy_oldest.capx

    I personally like the instance variable solution, it's very clean.

  • Like this?

    +sprite: platform is on floor

    +sprite: Is overlapping bouncy at offset (0,5)

    --- sprite: set platform vector y to -500

  • countofquad

    In regard to this Q:

    he reason that I'm concerned is what would happen if Object A's OnCreated code contained a Spawn Sprite statement for SpriteC. Would SpriteC be in the SOL at the point of Line 4?

    SpriteC would not be in the SOL. The "on created" trigger only has the newly created object picked. It does not effect the SOL of the event it was created from.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Remove the "wait 5 seconds" and only 5 will be created. With it you get a continuous stream of 5 planes a tick for 5 seconds.

  • The solutions work fine since the objects are created at runtime. Ashley's quote refers to not being able to assume iid or uid of an object in the editor.

    At runtime once an object is created it gets a unique uid that remains the same for the life of that object. IID's at least in this situation are 0 for the oldest increasing in order to the newest. Changing the ZOrder, layer or deleting a mid aged instance (with some older and some newer) at runtime may be cases that might scramble the iid order, but I would have to test those cases to verify.