AarongamerX's Forum Posts

  • You should create global variables. So when i complete level 1 set glabal variable to 1. If i beat level 2 set global variable to 2. If global variable is set to 2 unlock level 3. You would have to come up with a system that unlocks a level though. I did it the cheap way. I had all my level numbers off screen and when you beat a level i told the number to spawn in the location of the lock sprite. When the number touched the lock sprite it would destroy it lol. I'm sure there's a smarter way of doing it though.

  • I figured it out lol. All i have to do is say: On start of layout Objext(x) spaawn object(y). hehehe. This way every object of the x type will spawn an object y at layer(x).

  • Not sure what you mean but i tried to say for each object spawn a new object at its origin on layer(x). Its probably something simple i just gotta figure out why its not working.

  • I want to create an object for each object on the screen. For example if i have 4 squares on the screen i would like to spawn 4 circles at the squares origin.

    I thought the for each would work but no luck. It only spawns 1 object. I ran into this problem before but i through it under the rug. Now i actually wanna know ow to do it lol.

  • Ive had this happen to me. I usually put a 0.1 or 0.5 second delay after the click is executed. Whats happening is if you click its checking to see if the variable is 1. Once you click it changes into 1 instantly and doesn't know you want it to toggle. Its instant. Try putting in a delay in there.

  • k

  • How do i create a tron like trail effect where the trail fades. Im messing with the particles right now but it looks like butt.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you

  • If i have a repeat loop and set it to repeat 4 times what happens when the 4 times is reached. Also within the Loop i have a sub event that checks to see if something isn't colliding. If it isn't then it will stop the loop. But how does the loop turn back on?

    It's not really a problem i'm having i'm just trying to reverse engineer a script someone helped me with. I wanna get better at scripting.

    <img src="smileys/smiley2.gif" border="0" align="middle" />

  • oh yea srry. Thx yann. So i can fuse this with your last post? cuz i noticed it didn't have the local variable dir. Ill check it out when i get back from work. Thank you very much.

  • what do you mean?

  • Is there a way i can pick all uid instances?

    The reason i ask is because i'm trying to check if an object is overlapping but the check stops once 1 of those objects are overlapping instead of all of the same type. It's kind of annoying.

    I remember seeing something like pick random instance in someones script but it was a while ago.

  • i need to learn that math. Your like my role model lol. teach me your ways hehehe.

    I have another question. If the player wanted to change the bots direction how could that work. Like once the bot walks on a down arrow i want it to go down. I know how to grid snap drag but how do i change the bots direction on the fly.

  • then how do you know so much?

  • never mind it works. Thank you yann master :D

    The project will continue because of you thank you man. Did you get a computer science degree? because you are smart.