electrii's Forum Posts

  • Let's say I have a physics box with rotation turned off. when it's X velocity is less than -1, I want it to face left, and the opposite for right.

    "Set angle" doesn't cut it here, any other ideas?

    I know I could slap another sprite on top of it to handle the animations, but what if I want several instances of the same box? how do I attach an individual (but the same) "skin" to each of those boxes?

  • So there's no way to know what triggers it? if that's the case, there's no point working on my old backup since I won't know how to avoid it..

  • I just added a few events and a small sprite, and all of a sudden the file size jumped from 300kb to 8.5MB!!

    What could cause this?

    Edit: it seems that every time I save, the file gets bigger - the progress bar hangs at 85% while the file gets bloated. crap, my last backup is pretty damn old..

  • Sorry for the late response.

    Anyway, I did do some streamlining on your code though, I can send you a commented .cap of the changes if you like. For instance, I was able to condense your animation sheet down to just two events, and your dust spawning effect down to just one.

    That would be great! I'd also love a way to reduce the bounce a little, it's proving to be a bit more bothersome than I thought it would be.. I don't care about how it looks, it just makes landing and immediatly jumping less responsive than i'd like.

    You would of course get full credit if I finish this

    Also, I doubt the detector is the problem, since it still recognizes when to switch to the correct animation..

  • I see, thanks!

    My engine is coming along beautifully, I'll be sending a donation your way as soon as I can <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />

  • I thought i'd bump this thread instead of starting a new one.. so how exactly do I play a sound effect?

    Am I supposed to load each sound into a channel then play it or is there a more straightforward way?

    When I try to load an .mp3 into a channel, the game crashes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Mail sent.

  • This is due to a bug with what animation construct thinks is playing. Go to the debugger when running your .cap - check what animation is playing. It always says 'animation'. I think I submitted this one to the tracker...

    To work around, set a value to the animation name manually.

    Could you give an example? I'm not sure how to assign it since it can't recognize what is playing.

  • Nope, I named each animation differently.

  • ..Doesn't seem to work for me.

    I tried something simple to test it out like "Animation "Run" is playing - Destroy object" and the animation plays but it doesn't get destroyed.

    Same thing with "On animation finished" events.

    Maybe I'm doing something wrong? do I need to enter anything other than the animation name when prompted?

  • A workaround is to set its size each frame to its original width and height.

    Oh yeah, this is a nice temporary fix

    I guess that with this fix you don't really need to look into it, deadeye! now I can set "Play animation" along with any animation-changing events, which seems to solve the problem.

    Now I just need to lessen the bouncing, I'll try playing around with force settings..

  • That will be great, thanks

    I'm a graphics designer, not a coder, that's why my events are a little sloppy

    I've used MMF before, so this is a little more complex for me - it looks like the order of events is much more important here.

    Also, do you think I would be better off using a different method to control the guy? the only reason i'm using the physics movement over platform is because it allows me to easily play with velocity.

  • You might want to check the order of your events. If you have an event that switches your sprite to a different, single-frame animation that is being run before checking for left/right input and switching to "running" then when your "running" animation comes up it will always default to frame 1. For instance, putting your "change animation to default" action into an always event at the start of your animation routines will do this, but there are other ways as well. Just double-check that there isn't anything triggering an animation change prior to your running action that might be overriding it, and condition it accordingly.

    As for the sprite changing size... I don't know what could be causing it. I've never encountered it, and I've never heard of it happening. Maybe you could upload an example of what's happening so someone could take a look at it?

    I double-checked, and nothing should be changing it - the animation is the right one, it's just stuck on frame 1 like it doesn't play.

    Like I said, it works fine 90% of the time, but after playing for a while it randomly happens. I don't really want to show the game yet - could I email you or something?

    Everything is going smoothly for me in the controls department, but i'm having alot of trouble getting animations to play correctly. it'll always end up NOT playing any animations, while still switching to the correct ones.

    by the way, your kick-it demo is perfect for my game - except for the little bounce the character makes when it lands. did you find a way to work around it?

    Thanks for all the help!

  • I have an event that triggers "play animation" whenever a sprite changes direction. each time "Play animation" is triggered in the game, the sprite warps more and more, until it's almost invisibly thin. while on the subject, is there any reason an animation will just stop playing although it's supposed to loop? is it a known bug?

    I set a sprite to change to a running animation when holding the right key for example (I made sure "trigger once" is on), and it works fine for a while, but eventually when it switches to the running animation, it will be stuck on the first frame.

    Anyone come across something similiar?

    I love the program, but it seems way too unstable to develop something ambitious on..