How do I fix this problem with the set position?

0 favourites
  • 6 posts
From the Asset Store
10 Beautiful Pokemon-like Building Pixel Art Sprite Sets
  • So I recently got into construct 3 and I'm also not very good at coding but I can do stuff I guess. The problem I have is that when I set a spawn point and I was following a tutorial but when I did it (correctly too) it started spawning infinite characters... so I decided to do a simpler thing instead by setting the character's set position (I have two characters and the system is keeping track of the characters with a global variable I made and a very bad character select screen) but when I did the set position thingy the character is now stuck! I just need help with this because I can't seem to find the answer to it anywhere and if someone can answer this God frickin bless you...

    The image of the first test:

    The image of the second test:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You might want to set character position only once not every tick right? Use 'On Start of Layout' or 'Trigger Once' for the condition.

  • I'm sorry Alextro but I have absolutely no idea what that means...

    But I have an image of the code that spawns infinite characters without stopping the spawning

    I think this image will tell you what problem I have

  • They action should put at the side 'On start of layout'. In your screenshot you put spawning command in different event which is indicate by different event number. So yes that way while PlayerCharacter remains 0, Construct will spawning the object endlessly.

  • Thank you so much Alextro man you da goat!

    It fixed it thank you so much!!!

  • All events with an arrow "On xyz" (including functions), are triggers. These only execute when that specific event is being triggered

    Everything else, will run ON EVERY TICK. Even without specifically setting the event "On every tick". The "On every tick" event is actually redundant.

    So basically the game runs your entire event sheet, on every tick, all events from top to bottom, unless those triggers mentioned above.

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