amitkuliyal's Forum Posts

  • Guys here is a demo Please have a look

    www108.zippyshare.com/v/TY2uEmGU/file.html

    now i wanted to show the indicator on the edges of the screen, see if you can help me on that

    Thanks

  • Sorry guys for not replying this long actually i was first testing/ trying to get use from the logic everyone suggested here but unfortunately, i couldn't figure it out.

    The problem here is: my player (plane with car behaviour) is rotating all over( with unbounded background) and the missiles are spawning randomly somewhere out of the layout(or rather around a moving layout) and now whenever a missile gets close lets say 100 pixels away to the layout, an indicator will spawn and keep tracking the missiles action till it enters(or hit the indicator item) the layout.

    I liked the idea that Gearworkdragon suggested and i'm working on this logic to make it work for now it only spawn the tracker at the right position on the layout edge but not following the missile.

    BTW 99Instances2Go what is that plugin you are talking about? and your way is fine but for my game it doesn't work the way i want it. I am making an example file that i'll share hope that would make sense to everyone

    Again thanks everyone from your help.

  • www28.zippyshare.com/v/r1Zzy8jE/file.html

    Done!!

    Thanks for replying PixelPower

    But this is no were close to what I was talking about, anyway, I've uploaded a picture to make it clearer.

    so in the picture red objects are the missiles coming towards the player(green) and the red triangles are the indicating objects that will inform the player that something is coming from that direction.

    Hope you understand it this time. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />

    postimg.org/image/863l9o9z1

  • Hello friends,

    Please help me on making an indicator for incoming objects(missiles in this case) towards the player, the indicator will only be stuck to the border of the layout and when the object enters the screen that indicator will then disappear

    Thanks

  • okay guys i've figured it out Thanks BTW

  • Show us some example. Do you want an object to be created out of the layout and come walking in or just be created out and be standing there?

    yeah i want then to come after player.

    I've made them to come after player but i can't figure out a good logic that will spawn them outside the layout smartly(anywhere)

  • Hello everyone,

    I want to spawn few items outside my layout randomly, how is this possible ? I'm not able to figure out a logic for that. Please suggest me something.

    And also i'm not able to use nested if's here, so,could you guys also please suggest me a tutorial for the same.

    Thanks

  • Thanks everyone for your help ...Cheers!!!

  • guess what, now it's working, i only deleted the object and re-imported it into the game

  • Did your dummie walk to negative position values ?

    I suppose not. Dummy stayed in the layout. And layout starts at (0,0). But you spawn at negative value.

    yes i did check in every direction (using car controller)

  • Well some of the clouds will spawn outside of the layout and initial view because of your settings but you mentioned unbound scrolling..

    yeah, that's why i put a dummy object and used it as a player to navigate around the scene but i couldn't find any other clouds

  • martdsam in the debug it shows 15 spawn but i can only see 2 present in the scene( and i'm using the free version,could this be the reason for all this?)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • in the debug also i only see 5 clouds ,

    CBelle tried the same in a new project but got the same result

    Coin i also used repeat loop but it was spawning those 10 clouds every tic even though there was no everytic event on it (just on the start of the layout)

    martdsam yeah, this work fine, but i wonder why my code didn't work ?

    BTW thanks everyone for your time

  • Hello guys,

    I'm stuck again, i want to spawn around 15 clouds on the start of the game and then i'll spawn them according to players position in the game(unbounded background)

    but for some reason my code only spawns 5 clouds please tell me what i'm missing here...

    Thanks

    postimg.org/image/qec6oakfj

  • scirra.com/manual/67/layouts Manual article about the layout

    See there is a property named "Unbounded scrolling".

    Set the value to "Yes" instead of "No".

    Uhhh...okay, thanks a bunch