MarkThomas's Forum Posts

  • Hi,

    Not sure if this is possible, but I'd like to swap sprites with different ones and keep all the events assigned to that sprite.

    Eg: I started to create a game using simple coloured sprites to see if the game works, it does, but now I need to swap the simple sprites for the animated ones I've now created for the game.

    I think that when you delete a sprite from the layout you also need to delete it from the project otherwise it keeps that and loads it when you play, if the swapping can be done will it swap or delete the old sprite from the project and layout.

    Any help would be great.

    Thanks

  • Ah, thanks, didn't think of it like that.

    Will give it a go, thanks for taking the time.

  • Hi,

    Thank you.

    It's 2 different sprites as playable players.

    Player 1 wants to hit player 2 and if that happens I wanted player 2 to die.

    But I also want: if player 2 turn and he bashes player 1, then only player 1 dies. But because each of them have "on collision with" they both die.

    Like this: green player 1, red player 2

    The work around I've done is to add a blank sprite and place it over the green player, then I pinned the blank sprite over the green player.

    So now when the blank sprite is hit (at the exact location of the green sprite) the green sprite is destroyed but not the red one, and now the green can hit the red without dying like this:

    Is this the only way to do this? or have I missed something?

    Thanks

  • Hi,

    I have two players, if player 1 hits (on collision) player 2 and that destroys player 2.

    But if I want player 2 to hit player 1, then both get destroyed.

    I've come up with a way to only get one destroyed (the one I want hit) by using a sprite pinned to player 2, if that sprite gets hit then destroy player 2.

    Is there another way to make player 1 hit player 2 and player 2 hit player one, only destroying the one being hit?

    Thanks for any advice.

  • Wow, excellent, I did google but wasn't sure if I was even calling it the right name. mini map.

    Thank you so much.

  • Try Construct 3

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

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

    I'm not sure if this can be done, I've looked and can't find an answer.

    I'm creating a turn based game with the size 2000,2000, at some point in the game there is a item that is placed at random somewhere in my game. Because it's turn based I don't want the player to waste all his turns trying to find this object.

    Is there a way to create a button "View Map" and when clicked the player can see the map(game) in full including any sprites?

    Then the player can head towards that object to finish the game.

    Any help would be great.

    Thanks

  • Hi, Sorry to drag this topic up. (it's been a few years since these posts so I hope there's an update to fix it)

    I'm new to this, I have one layout with so many hidden things (that can still be clicked even though I don't want them to be) so I needed to make a new layout for end turn page showing the scores and a continue button.

    When I click continue the first layout resets.

    This is what Scirra says about it:

    "Go to layout

    Switch to another layout in the project. Note that global variables keep their current value - they are not reset. To reset them use the system action Reset global variables."

    Is there any way I can keep the new layout and just go back to the first layout without it resetting each time.

    Many thanks

    EDIT: I found this: https://www.scirra.com/manual/161/persist

    It explains that I need to add persist to each item on the first layout.

  • Hi,

    Thank you, I got it working in the end, I needed to put every tick.

    I'll paste it below in case someone else finds this post one day. Thank you once again for your help.

  • Thank you once again, believe it or not I really do try to learn things myself without having to ask people.

    I think I've done what you suggested and only the first player moves, when I click change player, the first still moves.

    Thank you so much.

  • Thank you so much for your reply, I understand what you say and it makes sense.

    But

    I've added an instance variable on the changer player button, I set number to 1

    The picture below works and stop both of them moving (I've not added anything to stop them both moving at the start)

    but when I click change player again, nothing happens.

    I know I've done something wrong, sorry to be a pain.

  • Hi,

    Recently downloaded the demo of constructor and love it, I've learned a lot but so far I can't switch from on player to another.

    I've looked at all the youtube videos and tutorials but they all add in extra things which I don't need.

    Could any one tell me how to have two sprites on screen (player 1 and player 2) and when I click another sprite (change player) the next player is then active. When I press change player again it goes back to player 1.

    Any help would be really great.

    Mark