rotacak's Forum Posts

  • 8 posts
  • Hello,

    I need to plan automatic builds, because our game is for several platforms (web and twice for win, mac, linux) and every platform have different version in xml file.

    Now I have to manually export almost every version and change version etc. It is very time consuming and not error proof.

    I would need something like this: run .bat which will do:

    1) before: change version in xml (file included in build)

    2) build

    3) after: rename exe, pack build

    It is possible somewhat?

    Thanks for reply.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I want to make game like this:

    • all levels are made from blocks
    • some blocks are walls
    • player can move up, down, left, right but only when he is not moving
    • player will stop when hit wall
    • player must always stop exactly at the center of block

    Currently it is done by 8 way direction and collisions with solid blocks. But it is bad, move is weird, it stops randomly before hits wall and player can't fit into narrow road.

    Example: https://youtu.be/56nCJPujoa4

    What is better solution?

  • Thank you, it works

  • Hello,

    I have one big sprite as a background and several small sprites on top of background.

    I want to know if I clicked small sprite (add score) or clicked anywhere else (decrease score). Currently when I click on small sprite then I get add score and decrease score together because both sprites are under mouse cursor.

    Something like:

    IF small sprite is clicked:

    add score

    ELSE if big sprite is clicked:

    ...i want to go there...

    ENDIF

    Any ideas?

  • codah: look at attachment. You need to have one your family (Items) but also new family (SelectedItem) with exactly same content. When you will pick one sprite and you want to do with it something (rotating...) you will access it through family SelectedItem.

  • Using sprite with animation frames is possible probably for display only. But if I want to display sprite with ItemId = 150 and do damage defined in that sprite then I think solution with animation frames not help. Also I need to have two same sprite images on two places and edit them on two places.

    Nickname plugin looks good. It is still not best thing (you need to insert picked items into family and work with that family = same object in two places) but I think it will be still better than 150 conditions.

  • Thanks for reply.

    Your solution works but still there is needed to specify blue and yellow sprites separatedly. If I will have 150 sprites then I need to use 150 events.

    Really there isn't any other way? For example foreach all objects in family and check ItemId or foreach all completely all items or similar thing? I can't believe that such genial program like Construct 2 does not have such thing

  • Hello,

    In this capx is easy thing similar to:

    IF family.ItemId = 1 THEN spawn sprite from family with ItemId 1[/code:1vca20x9]
    
    But it works differently. It will spawn just whole family and that means it will spawn random sprite from family. Regardless on number in ItemId.
    
    Question: is there any way how to spawn sprite with instance variable ItemId = 1 from family?
  • 8 posts