AnD4D's Recent Forum Activity

  • sqiddster Sorry to bump this again, but I'm working on your example, trying to get multiple lasers working at once. I can see earlier than you mention this in regards to applying it to containers, but that looks like it may be referring to an old one.

    I downloaded your capx and simply added in another ray. Only the original appears to be affected by the code, and I can't figure out why. Any chance of some extra help on that?

    *edit - saying that, it looks like replacing the Pick - Function.Param(0) with a for each does the job. Just not sure what the knock on effect will be.

  • Yeah, I had the same after I started saving to the pc rather than the cloud folder. It even came up with a message asking me to copy and paste (CTRL-C) an error message, but when I did that it just made an error noise, and nothing was copied.

    But this bug is closed, so who cares, right?

  • Well, tbh, don't work from a cloud drive, use that for backup. I also suggest saving it as a project (e.g. individual files) unless you actually want a single file .capx to send to someone. I've had C2 crash with image issues a couple of time, fortunately nothing terminal but fiddly to sort out. Saving as project seems to work more reliably.

    Worked perfectly fine for 3 years straight... and I work on my laptop and 2 pcs, so being able to work off of one file is useful. Suddenly stopped working after installing 206... but OK.

  • Colludium Brilliant! Thank you!

  • Colludium Looks great for the most part. Might try to increase the number of particles, as it does become hard to see at high speeds.

    R0J0hound That sounds a little bit above my abilities.So you're saying store the pos of 2 particles and use lerp to get the position between the two, then create a particle in that space... Might that be quite CPU intensive?

  • I'm wondering if anyone out there has a decent technique for having particles work with very fast moving objects.

    In my game, I have an object that's moving at 1000 pixels a second. It's spawning a smoke particle every tick. I note that the particle has a slight gap between it and the next one. I'd like to remove this gap, and was hoping someone knew of a great method for doing so.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think I may have cracked it... after realising that it was based on seconds rather than frames, and C2 defaults to 60fps... I set it so that each time a bullet is spawned, it stores the gun's x and y vector divided by 60. It then adds this data to its position every tick. Then when a speed is applied to it, the motion appears to work as expected.

    Looks a bit odd at times, but it looks pretty accurate.

  • Colludium Very strange. When I apply this to my project, the bullet appears for 1 frame, and then vanishes. When I go through the debug menu and take a look at what the bullet is doing, it's X/Y vector and X Y coordinates are replaced with NaN (not a number).

    In addition, I note that the angle of motion is applied to the Y vector only. Would the same action work if the gun was moving only on the X axis aiming up as well, or would I need a new bit of code for that?

  • Colludium Thanks! I'll have a look at this now! I think I was being thrown by velocity being based on per second rather than per tick.

  • Sorry if this has been asked before. I can barely think of how to word it, so please bear with me.

    I have an object that is controlled using physics. Said object can fire a sprite with the bullet behaviour.

    When the object is stationary, and fires facing right, the bullet will move as expected. However, when the object is falling and it fires, I want the bullet to retain the vertical motion/speed, and then continue to move to the right.

    This is most noticeable when the object is facing down and it fires. The bullet can sometimes appear to be moving up, as it's moving slower than the "gun".

    As the object is physics based, I can't figure out how to apply the vector to the bullet behaviour. If I was using the physics behaviour as the bullet, I'd simply set the vector to the same and then apply an impulse in the direction I want it... but I don't want to use the physics behaviour for this.

    Hope I've made sense. If not, please let me know and I'll try again.

  • Problem Description

    Error saving 'New Project' - the project has NOT been saved to disk. We apologize for any loss of work. you may want to report this to scira.

    Message: Failed to move .capx.tmp to .capx

    I am working off of a cloud drive, but nothing new has happened or changed, as far as I am aware. Was fine with a previous version.

    https://www.scirra.com/forum/failed-to-move-capx-tmp-to-capx_t77456

    Someone else brought it up here...

    Attach a Capx

    It's the save button in Construct 2... not sure a capx would help.

    Description of Capx

    NA

    Steps to Reproduce Bug

    • Open C2
    • Save
    • Watch the program delete your CAPX
    • Save as in order to recover your work

    Observed Result

    It fails to save, and error message appears, the capx is effectively deleted.

    Expected Result

    It to save

    Affected Browsers

    NA

    Operating System and Service Pack

    Windows 8

    Construct 2 Version ID

    206

  • Don't suppose C2 will be one of the permitted engines...?

AnD4D's avatar

AnD4D

Member since 4 Nov, 2011

Twitter
AnD4D has 3 followers

Connect with AnD4D

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies