Eliyahna's Forum Posts

  • If your sprites are on a layer that has parallax set to zero, you have to either anchor them or pin them to something.

    I also had a case once where I set a layer to invisible... then I called that same event sheet to another layout forgetting that command would follow. You can make commands to layers be level specific. Like "system show layer 2 invisible, if global-level=4"

  • Just change whichever section of code it is, then undo and save.

    I would go into preferences and set up a daily backup to your hard drive and to a private dropbox folder. This way, if something "breaks" you can go back to your working model that's only a few steps behind and then copy and paste item by item the new code to it. Sometimes, you'll find you had a mistake. Other times, it will be a mystery why it works now and wouldn't before. But at least you always have 2 copies of the last working version from yesterday. I set mine up to backup once per day. It will do it automatically when you save once per day. It doesn't take more than a couple of seconds and it can save you many hours of recoding.

  • I think it looks great

  • Can you give me a screen shot of your code?

    Instead of having so many ifs and elses, it helps just to make separate events.

    event1 - when gasattack finishes "do X"

    event2 - when bullet hits zombie and also gasattack animation is playing, "do x" then die (so that you don't lose the "do x" part on interruption.

    Maybe I'm not understanding the problem correctly. But I was trying to do a lot of ifs and elses like you and it did become problematic. When I made them separate events for each possible scenario, the correct one always plays.

  • You should do it the same as you would write it I guess. "gasattack" toggle "gas to true". When animation "gasattack" is finished toggle gas to false. If bullet collides with zombie and gas=true, play animation "gasdie".

    If you understand about animations you will know that when there are frames missing the human eye will fill in the missing parts. It usually will not be apparent. You don't have to ensure that the next animation starts exactly where the last one left off for it to "look" smooth.

  • This is where an instance variable could come in handy. I think like, creating instance variable "gas". if zombie animation plays "gasattack" toggle "gas to true". When animation "gasattack" is finished toggle gas to false. If bullet collides with zombie and gas=true, wait(length of gasattack animation) then play animation "die"

    ?

  • I can't see your cap because I don't have your plugins but if I understand what you are saying, you have:

    • 3 seperate animation events for 3 ranges
    • 3 bullet collision events (each one corresponding to the animations)

    If they are 1 or 2 frame quick animations which may or may not loop they should not get interrupted?

    I would not assign the bullet collisions to the animations. I have not had luck with that myself. I would create instance variable for the animations and say "when bullet collides with zombie - if instance variable ani2=true play die2" for example.

  • No the code looks fine to begin with, it just doesn't work. There will be nothing wrong with the way it's written. So I change it then change it back (in order for the system to allow a save for that area of coding) then save and it looks the same still... but it works now.

    It's almost as if, even though it was written correctly, it just never saved in correctly or became corrupted.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I know this sounds weird... but sometimes I move the lines within the block of code and then move them back, then save. When the system saves it seems to "rewrite" the messed up coding to the correct code shown again. (although the code appeared correct in the first place but it didn't act like it was written)

    I've had to do this in various areas before. Also, if something "breaks" unexpectedly and there is no apparent reason why I open the backup (you can set the system to do one daily) and I paste whatever code I've added since to that copy and it will work just fine. I know it sounds weird!

  • Thanks so much for the backup feature. It's saved my can a couple of times already! <img src="smileys/smiley10.gif" border="0" align="middle" />

  • the problem is that after the set amount of idle time, those "idle" animations are not playing randomly or otherwise at all.

    do you know anything about this?

  • I did try - "if platform is not moving (also tried if 8 direction is not moving), wait 5 seconds, set animation to Bubble, wait 5 seconds, set animation to Sleep" but the animation would restart unpredictably during gameplay.

    Having a random animation play after a certain amount of idle time seemed like a great idea but I'm not clear why this is not working. I set the timer low so I can see the result right away when I'm testing it. It was set to 300 and it still did not work.

  • I'm trying make my sprite do one of 3 animations randomly when it is left idle. I used the tutorial at scirra.com/tutorials/440/call-random-animations-with-an-array and it is not working.

    My array is named: IdleAnimationSelect

    The name of the sprite is "PlayerAnimations" the names of the idle animations within it are: Still, Bubble and Sleep.

    Here is my code:

    <img src="http://www.eliyahna.com/temp/capture9.jpg" border="0" />

  • Not sure how much "rep" I need to reply <img src="smileys/smiley5.gif" border="0" align="middle" /> Please, interested parties email me at eliyahnavptq@gmail.com

    Someone said how much will I trade? The equivalent value... A professional illustration I would say is $30 - $200 depending on the complexity (about equivalent of a year of server space). If you want a whole web site you can keep helping me with graphics if I need some and I'll keep helping with your site in return. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I will trade web design, web development or coding, web hosting, seo and search engine submissions. I can make you a beautiful website to sell your services and host it for the year in return for the sprite design.

    If you don't need a website, you can use the server space just to store your files or whatever you like.

    I need one character design illustrated. Please message me for more info.