Zathan's Forum Posts

  • 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;

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • 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

  • to preload multiply audio files:

    Preload (by name): "explosion1"&"explosion2"&"explosion3"&"explosion4"

    is that right?

    and how do i play this sounds randomly?

  • Like asteroids to my game... i'm using 'scale inner', so the layout size isn't always the same.

    I want that asteroids to spawn random in every side of the screen. Thanks

  • When you say it doesn't work, what are you expecting to happen? It seems to work ok for me.

    I get it now...

    I thought it was for something else lol

    anyway, thank you ^^

  • Yes, use 768*480 with landscape =)!

    ok, thank you ^^