Zathan's Forum Posts

  • Hi, Here the example file. enjoy

    .capx file:

    https://www.dropbox.com/s/hxyu6w3m1i5tu ... ample.capx

    image jpg

    https://www.dropbox.com/s/fgk7twb4dxxxhk2/Bird_Warp.jpg

    hehe thank you very much, luis <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    but what about top and botton of the layout?

    in my tests, i made something similar to your example.

    In my game, the asteroids direction depends of the spaceship position in viewport.

    but i can't find a way to spawn the asteroids in anywhere out of layout.. :\</p>

  • I want to spawn objects in random coordinates around all the layout. But, out of layout.

    Just one thing.. i'm using the wrap behavior on the objects.

    And the layout is landscape 768x480.

    Thanks

  • On any touch end?

    holy ******* i thought it was for something else..

    sorry, I'll pay attention next time lol

    thank you

  • which is the equivalent to the "is touching object"?

    i can't find anything..

  • I did a zombie top down game test a while ago... it's old, but have the limited bullets thing <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    take a look!

    https://dl.dropboxusercontent.com/u/191 ... este2.capx

    in the events tab, go to "armas" group and then "p220".

    any questions, just ask;

  • pm your email, I'll send you the file, it will be so much easier if you see the capx... Otherwise for the first part 5Type basically already covered it in terms of code, you have to dig a little into expressions...

    yup.. i've started to learn construct and basics of programming recently.

    my email is nhsombra@gmail.com

    here is my attempt to do the 3 shots thing: https://db.tt/cUf1UJDm

    when the spaceship starts to turn, start the error..

  • What do you mean it's not working? It downloads just fine on my part. Perhaps you have some antivirus or popup blocker in your browser?

    no '-'

    perhaps my country is blocked? lol

    but the thing is.. i just want the spawned objects to go in my direction (the spaceship).

    any tips on this?

    just one more thing: how to, when i shoot, spawn 3 bullets with different direction? ex:

    1: 90 degrees

    2: -15 compared to the first

    3: +15 compared to the first

    sorry for the 'truck' of questions hehe

    ..and sorry for the english :b

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, then wait for 'All preloads complete' with a 'Trigger once' to toggle a variable that flags that the sounds can be played (if that is relevant).

    great

    tnks

  • Something like this..?

    http://www.eli0s.com/Tests/SpaceShip.capx

    the link is not working here :\</p>

  • Calculate the angle from your asteroids X,Y values to the spaceships X,Y values. And use that angle in "Set angle of motion" (bullet behavior).

    I think you can use the expression "angle(x1, y1, x2, y2)" for that.

    I understand the idea, but what about that expression?

  • oh, and the asteroids rotate on their own axes.. therefore, i don't know how to do this

  • 'choose' would also work.

    what's the best way to use preload?

    with 'on start of layout'?

  • i need that spawned objects are attracted for this other...

    like asteroids. when they spawn, go in the spaceship direction.

    edit: i'm using the bullet behavior in the asteroids and custom movement in spaceship;

  • No. You are trying to preload a sound called "explosion1explosion2explosion3explosion4".

    Just load each individually.

    To play: Play by name: "explosion"&int(random(1,5))

    oh, i get it

    but what about the 'choose' to play random sounds? works fine?

  • -XY will spawn outside.

    You should be able to use the layoutWidth/Height for the right and bottom.

    Thank you