emoaeden's Recent Forum Activity

  • Kyatric and is Asmodean are both correct.

    Ceil() is great for rounding up integers while floor() is great to round down integers.

    Take your value x and use (floor(x*100)/100), granted round will do the same in this example; but floor is better for if the number has lots of decimals.

  • So I have something beautifully coded (which I have removed in the attached CAPX), but it is just ridiculously slow.

    As it stands, it shows it uses 75-95% of the CPU (according to the debug window)

    Any idea where I have stuffed this up ?

    Slow CAPX File

  • emoaeden's example is a great formula. Just remember it's current health, and initial size at a 100 percent. Health*(256/100)

    imothep85 : The reason it's 256 is because it's 256 pixels wide, so if you have bars that are longer or shorter, just make sure you adjust accordingly. Probably an obvious statement, but just in case you're super new, thought I'd point it out

  • A simple 5 minute file I made ages ago. Hope it helps.

    https://dl.dropboxusercontent.com/u/108 ... thBar.capx

  • Try using Trigger Once While True

  • If you use the Set Angle it should do the trick.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not a great animator, but this should convey what you could do. I've just done one, which is Space, but if you make more awesome animations like mine, and assign them each a key, it should do what you want in a fairly basic and easy to follow way <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://dl.dropboxusercontent.com/u/108 ... hting.capx

  • The just use the Set Position to Object or Set X or Set Y to WhiteSprite.X + Number or WhiteSprite.Y + Number

  • I'd just give them all the same tag, and tell it to stop playing a sound with tag "LevelMusic" at the start of layout, then read a variable of what level you are on and then Play Sound&"LevelThatYouAreOnVarible" with the tag "LevelMusic"

  • So are you wanting it to slide each row down only wen you have pressed a black square or just constantly ?

  • Odds are you can't upload as you are too new to the site.

    As for the animations, is it that you need 4 different keys for each of the directions ? I can do you up a quick CAPX, if not, can you explain more ?

  • I would think that having multiple animations might make the code cleaner, unless you are going to families instead.

    But having a menu where you select the ball you want to use from those you have earned/bought would be the easiest way I'd say, an then either have it set a global variable that references a particular animation or sprite in the family to display.

    As for the start of the game, it may come down to how you have designed the game. Depending on how it is made, you could store each level as a text file then read them in and have the game set them up accordingly (using arrays and setfromJSON expression)

emoaeden's avatar

emoaeden

Member since 18 Jul, 2012

None one is following emoaeden yet!

Connect with emoaeden

Trophy Case

  • 12-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers

Progress

14/44
How to earn trophies