Pakost's Forum Posts

  • You need that expression

    random(0,2)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you create a sprite, it creates the sprites it contains

    So the weapon or whatever will be created along with the character

  • I think what u need is Z order plugin

    It is available even to the free edition i think

    It makes all the sprites in the current layer to arrange along Z based on the X and Y coordinates

    So when the origin of a sprite is at position Y-100 for example, all sprites that are Y<100 will be placed behind that sprite and all that are Y>100 will go over it

    Hope it helps

  • Ill try to explain this

    You have conditions and you have actions

    It works like: If (condition), then (action)

    In your case i would do the following

    Attach an empty sprite to the position of the character

    Set action that Sets angle toward Mouse.X/Mouse.Y

    Now you have the emty sprite rotating toward the mouse

    If the 8 directions of the character are 8 different animations, then set the following event:

    IF: System, Every tick /THEN: "Character sprite" Set Animation

    and in Animation tipe "round(EmtySprite.Angle/45)"

    that makes the angle from 0 to 44 = 0, 45 to 89 = 1, 90 to 134 = 2 and so on.

    So now when the angle is within 0 - 44 you get 0, which is animation 0

    Hope you understand it

    BTW i dont know if thats the best way but i'm just trying to help.

    Cheers

  • Most likely you adress all the balls

    You should make the action like this

    If "bullet" overlaps "Balloon"

    then destroy balloon and spawn 2 new balloons

    if that is one action, then it will take only the balloon that is hit, not the others.

    Not sure but hope it answers your issue

    cheers

  • Well doesn't sound so messy to me

    The 2 small balloons should be 2 instances of the same sprite, so they can act independent.

  • Hmm

    Maybe this is what u need:

    When object is on screen - Set Visible

    Else - Set Invisible

    Hope this helps

  • Yeah looks quite nice. Thanks!

  • Maybe On collision with will help?

  • Sounds like Instance variables is your thing to do. I think you cant read effect parameters as you want to.

  • Well, moving the character and facing it toward mouse are 2 different things so i think you have no problem with that.

    Once you have the wasd moving, make the following action:

    System, on Every tick, Sprite(character) Set angle toward (Mouse.X, Mouse.Y)

    NB. You should have added mouse plugin to use that Mouse.X/Y expression

    Hope that helps ya

  • Hi guys

    I'm environment artist and was happy to discover C2

    I'm working on rts like strategy game for now

  • I'm kinda new to C2 but i can tell you how would i do it.

    Its always better to have all weapons in 1 sprite and change the frames or animations, that is how you wont need to create/destroy sprites every time.

    For the shop menu i would made it in the same sheet in inactive group so when player presses certain button you Set Group "Shop" Active, and then all the changes one makes in shop will easily applied to the game.

  • it looks like the problem is that your textures has semi transparent pixels. That can happen if you have scaled that images.

  • Thanks alot guys

    It means alot for me

    This project is just starting but my intentions are to get it to the end... hopefully :)

    If you are interested Joan i can post the capx but im afraid its quite a mess. Even for me is hard to find my way around.

    I'll keep the game updated so if anyone is interested can check it out now and then.