milk's Forum Posts

  • 9 posts
  • If you want the spawner to spawn bullets in a curtain angle you should keep that angle on a instance variable on the spawner sprite.

    Ok, I did that, but I'm still missing something, because it's only changing the angle of motion of the bullets that had already created, I want the inverse situation :p

    take a look:

    www . dropbox. com/s/dptx0tup1mek1qc/spawn2places.capx

  • Sure. You could create an instance variable and then set the angle to what you want depending on which of the instance you picked.

    Use System --> compare two values after you have picked the random spawner instance.

    thx for the reply, but I didn't get, Should I create an instance variable for the Spawner sprite or to the Bullet Sprite?

  • Now I have another question, I dont know if post here or if should create another topic.

    Can I change the bullet movement angle, depending on the instance where the bullet was spawned?

    This is my example now:

    dropbox.com/s/dptx0tup1mek1qc/spawn2places.capx

  • "System --> pick random instance" could do that for you. Then on the action spawn the bullet.

    It worked, thx for the help!

  • Hi guys, I have one sprite that has a bullet behavior, and 2 another sprites with no behavior, its in these sprites where the bullet sprite must spawn, but the 'choosen' spawner sprite must be random. I dont know how to do that in the C2.

    Could someone give a help?

    In pseudo language, it would be something like this.

    Every random (1, 2) seconds do{
              Choose randomly 'Sprite A' or 'Sprite B';          
              Spawn 'Bullet Sprite' in the sprite choosen;
    }[/code:74sa5fp8] w.dropbox.com/s/dptx0tup1mek1qc/spawn2places.capx
  • Wow, thx guys, you're awesome.

  • I think you should create a new Imagepoint on the 'Running' sprite, setting the new Imagepoint on the position where you want to spawn the 'Slashing' sprite.

    And in the event, which you are spawning the 'slashing' sprite, set the position of 'slashing' spawning as the position of the Imagepoint you created in the 'Running' sprite.

    I think the solution is something like that. Please, someone correct me if I'm wrong.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys, this is my first topic here in the forum , but I have been 'playing' with C2 for about 2 weeks.

    My question is, How do I simulate control of jump, but not only in vertical ? I need something like in the normal platform behavior when up/left or up/right are pressed at same time.

    Resuming: When 'left' is pressed, the player goes to his left position, but jumping to there. The same for right button.

    I created a gif to illustrate what I want to do:

    http:// i.imgur.com/WVvhLMQ .gif (join the url, I'm new so I can't put URL's : p )

    A fter seeing this, someone can say "Just add a platform behavior to your

    player", but that is not my objective. Because I don't want the player walking on the platforms, just jumping to one platform to another, the jump movement to right/left its just a 'illusion' of control, the Player is fixed in a point on the platform he is. That's why I think I should work with simulate control, but I don't know how to do this.

    I don't know if I explained well, but this is my question hehe.

  • Hello World! I'm from Brazil, and I'm here looking for learn this great tool

  • 9 posts