yuji567's Forum Posts

  • 11 posts
  • Sprite3 --> X<= -560 --> Sprite3 --> Set X to 0 ,

    it waits for the floor to end before it can make a new floor. i want it to be smooth help please?

  • you set its position to x = random (0,100)

    and its y position to =random(0,100)

    thanks all for your replies =)

    Is there a possibility to use 8 directions without using arrow keys? i mean the sprite wont be controlled by the player

  • How are you setting Spawn.X and Spawn.Y?

    You can add a condition after or before the object is created that says something like;

    Set Spawn.X to random(value)

    Set Spawn.Y to random(value)

    This should change the Spawn variables and make the spawn position change each time.

    ~Sol

    I've cloned my spawn sprite. how make it random?

  • this is what i got, but it still respawn in the same location.

    System:Every 2.0 second

    System:Pick Random Instance ( Spawn ) --> System: Create object (Sprite 4) on layer 0 (Spawn.X , Spawn.Y)

  • Thank you for you help !! =) sorry im i got many questions thank you !!

  • If you want to do that, there is no need for the second event at all. You can directly create the sprite 4 in the first event, change the action to system -> create object -> select sprite 4, select the layer, and on x y coordinate add the random location.

    it works lol, but sprite 4 only last for 1 sec,

  • Can you explain why do you need sprite 7? is it just to trigger the second condition or there's more to it?

    to randomized my sprite 4 locations of spawn?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The second condition is the problem, when the condition comes true construct executes it 60 times a second, that's why you get more then 1 spawns. They are several ways you can fix this, you can add another condition to the second event system -> trigger once while true, or you can destroy the sprite 7 after the second event triggers, in the action menu select sprite7 then destroy. Both of this will fix your problem.

    then i should create a new sprite?? since ill destroy the sprite 7

  • Put it on tinypic.com and share the link here. You have to put as plain text until you get 500 rep, so write the link without the http and

    oh sorry here:

  • Can you put a screenshot of the event that spawns the sprite?

    how to put image? sorry im new

  • My problem is , when the sprite spawns the numbers of sprite is hundreds . and i want only 1 to spawn

  • 11 posts