deadeye's Forum Posts

  • + Always
        -> Set global('average') to 0
    
    + For each object
        -> Add object.Value('variable') to global('average')
    
    + Compare:  global('average') / yourNumber is equal to number of objects
        -> Do your thing
    [/code:615x1f1t]
    
    Maybe?  If not then it might help to have more information.
    
    By the way, this will only work reliably if there is a maximum value for your object's variables, and you are checking if the numbers are all at max.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I mean, CAN you pick and compare two specific sprites at all? for example:

    Pick Object with .value('ID') = X

    Object.value('var1') is less than Object.value('var2')

    Pick Object with .value('ID') = Y

    I have no idea what the context is in your example, but the answer is yes, you can.

    http://dl.dropbox.com/u/529356/pickingvars.cap

    I tried to recreate what you posted there as best I could, like I said I don't really understand the context. It uses the family picking trick.

  • Have you tried the "Pick by comparison" condition?

  • I have a 64x64 sprite (actually scaling from 302x302)

    If you're just going to show the sprite at 64x64 then why is your original image 302x302? That's crazy wasteful. Resize your sprite in Photoshop or something and then import it into Construct.

    I tried temporarily making the sprite 64x128, but since my pivot point was in the middle of my sprite, it added the extra width onto both sides (32 pixels on each side rather than 64 pixels in the direction he's facing) and made it look weird.

    You need to change your hotspots. They don't have to be in the center. If you have a sprite of a boxer, and the hotspot is on his shorts, then to make him stay "still" across all frames you need to put the hotspot on his shorts. When he throws a punch his sprite might be getting wider, but you still need to place the hotspot where it belongs instead of the center.

  • Fixed . Hopefully you won't get spammed too hard.

  • Aff, vcs n?o mto foda doido !, e eu ? sou idiota, nem estupdo,que melda,? posso nem sonhar em paz

    ??

    Hi Rick

    I apologize on behalf of Turok, he's been warned and hopefully he won't continue with the name-calling.

    But we have a policy here on the forum that posters should post only in English. I realize this may be frustrating, but none of the mods or admins are bilingual. We can't moderate in a language that we don't speak, I hope you understand. So please, English only in the future

    Anyway, I'm going to call the bacon fairy before this thread gets any more out of hand.

    <img src="http://i49.tinypic.com/zxqo3n.jpg">

  • This does look pretty rad. I wish I could say "this should come in handy" but I can't imagine ever using it myself, so you should develop it into a full game

  • you stupid

    Don't, dude. There is no need to get personal. Either point out where he's wrong, or leave it alone.

  • Now look: "baddas":

    http://img709.imageshack.us/img709/8898/problemlu.jpg

    It doesn't look like that at all for me. In fact, on my computer it looks exactly like your second example. I'm guessing it's your graphics card.

  • Any idea why I colud not open Minor's file?

    What version of Construct are you using? The most likely reason is that he's using a newer version.

  • I was a little hesitant to post my .cap file since the game looks like ass right now, but okay!

    http://www.mediafire.com/?mxznn0jnn20

    Also, thankyou for your help, I will try one of those.

    Don't worry about how your game looks, nobody is going to mind

    Anyway, that "little loop" is coming from the fact that your hotspot is placed at the nose of your ship. When an object rotates it does so from the hotspot, which Construct assumes is the center of origin. If you want to rotate your ship in a natural looking way, you need to center your hotspot. So thank you for posting your .cap or else nobody would have ever caught that

    I took off Car behavior gave your ship Custom Movement. I think it feels more natural and spacey, but you can decide for yourself. Your updated .cap is here:

    http://dl.dropbox.com/u/529356/newship.cap

    v0.99.82

    I realize that you're using an older version of Construct but it may be worth it to you to upgrade because there were some other mistakes (one of them pretty major) that I noticed in your .cap that I corrected and added notes on.

    Also, if you plan on making frequent uploads I recommend you get Dropbox, it's very handy. Mediafire is total crap.

  • Information like what? I'm not sure what you mean.

  • It's always a good idea to post your .cap so that people can see what's going wrong. "It basically does a little loop" isn't all that descriptive

    And I'm not entirely sure Car behavior is the best choice for spaceship type movement. I assume you're looking for something like Asteroids? You would probably get better results from Custom Movement, or Physics.

  • You could add a "Rotate towards angle" function for sprites while you're at it.

    Agreed, it would be nice. I've been caught more than once staring blankly at the angle actions and scratching my head in confusion before remembering it doesn't actually exist.

  • Ah, I see. No, the particles don't angle themselves like that.

    Yeah, was considering it, but that seems a little wasteful on resources, I bet a dedicated particle system is faster. Already using something like that for missile trails, for example.

    True, it's not as efficient as particles, but as long as you don't have thousands of sparks on the screen at once it should be okay. And you could easily get that angling thing you're after with sprites.