[SOLVED BY DESIGN]How do I prevent all pick...?

0 favourites
  • 6 posts
From the Asset Store
Pick Up Items Sound effects for your game, Take them for a ride right now and you will worry no more.
  • I made a monster generator with multi sprites each sprite set to head, eyes, mouth and body, I have a problem, l show you the screenshots.

    1) When I type a name in textbox and click to generate a monster

    2) Next step, I type another name and click to generate another monster

    But I didn't want to set parts to other monster is already created... I keep clicking to create with different names

    3)

    That's I didn't want it after all.

    There is my event to create monster, sorry for non-semantic variables

    Would you mind how to prevent to all picks when each monster is created?

    Thanks

  • Never mind, I didn't notice why load image from URL only applies one frame in sprite, these sprites have only one frame. When an object is create, it shares image to another new object.

    Oops.

  • So how did you fix the problem?

  • Sprite object all share the same set of animation and animation frames. You can't have two instances of the same object with the same animation name and frame that look different. One way to circumvent the problem would be to have a lot of placeholder animations and/or animation frames (depending on the needs), and keep a dictionary of the "mappings".

  • Magistross hmott Tiled Background dont share frames, it can have many instances and load image URL after all.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am using the paster plugin by R0J0hound,

    It works exactly the way it should: create a new instance; on object created -> load an image; repeat.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)