a3tiger's Forum Posts

  • bump

  • Hello friends !

    I am trying to make a free run game.. I have a group of enemies that spawn in the game depending on the distance covered by the player.

    These enemies will stop spawning after a specific distance..and then will respawn again after the player has traveled a set distance..

    so fr example..

    spawn enemy1 when the player distance is between 0 to 500 mts

    spawn enemy2 when the player distance is between 250 to 750 mts

    spawn enemy3 when the player distance is between 500 to 1000 mts

    the type 1 enemy spawn will stop when the player distance >= 500

    type 2 enemy spawn will stop when the player distance >= 750 and so on..

    this is kinda easy..to achieve..

    I have 4 types of enemies in the game..

    Each of them spawn after a set amount of distance..it's easy to make them spawn the first time.

    but as the player progresses in the game..with covering more distance i want to make the same enemies come back with more health

    so for example..after 1000 mts

    spawn enemy 1 with health 2 player distance is between 1000 to 1500 mts

    spawn enemy2 with health 2 when the player distance is between 1250 to 1750 mts

    spawn enemy3 with health 2 when the player distance is between 1500 to 2000 mts

    This should work in a loop for every thousand meters and the enemy should respawn with +1 health every loop.

    Please help !

    Avichal

    India

  • Thank you AkiraWong,SullyTheStrange,Nimtrix !!

    It worked :)

  • Hi there, I have been struggling to get this work for a hour now

    How do I get the center co-ordinates of the window at all times ?

    I want to bring up the pause menu like the resume button and the main menu button while the timescale of the game is 0.

    I want to get them both at the center of the screen one below the other.

    I tired windowheight/2 and windowwidth/2 for the said buttons but that

    doesn't work because that will give it a definite position.

    I want to get these buttons created in the center of the window on esc down, irrespective of the player position on the layout.

    I also have a doubt about. When a new layout is loaded is the other layout still running in the background.

    And is there anyway if i could just keep everything the same when esc button down go to a new "pause" layout and then when clicked on resume in the "pause" layout the game beigns from where it stopped??

  • thanks it works now..i didnt use the word floor before random my bad :) thanks for helping me..because of people like you i love scirra and construct

  • i just tried working with the instance variables.. it still doesnt work.. but i guess i will used choose(1,2,3) that works with the instance variables. i am planning to do choose (1,2,....12) to decrease the number of chances of the drop the powerups, coz every enemy will have a possibility of dropping powerups :)

  • i have tried instance variable also.. i doesnt seem to work. i also tried choose(1,2,3) that isn't working too.. i will try choose with instance variables..just a quick min

  • Hello !

    I am trying to make the enemies in my game drop random powerups..but the random feature for me is not working for some reasons.

    I also tried random(0,4)

    Image of events

    Please help !

    Avichal

  • Reset dialogs worked !

    Thank you !! :)

  • So I cannot add events. I don't know what happened but when I click on Add events the "Add events" text turns blue and nothing happens. I have to press escape to go back.

    Is this a bug?

    I already re-installed it and this happened with 99 build and now the new 100 build too.

    Help !

    Avichal Singh

  • Thank you for your replies guys. I understand that 2 animations cannot be played at the same time But I think I was looking for the pin method. Thanks Tele and everyone else. I will try it soon or something cos I am gonna participate in ludum dare which starts in 1 day :)

    Avichal

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How do I play 2 animations with out stopping the previous 1? is it possible or am I missing something.

    I have a player moving forward but when he is shooting the moving forward animation stops.

    What do I do?

    thanks !

  • Thank you Nimtrix ! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hey guys I was using construct 2 till this morning perfectly without any problem. Then I tried importing some frames. As soon as i click on the "Animation" tab construct 2 crashes. I restarted my pc and reinstalled construct 2 99 release too. I am still unable to figure out the problem.

    Avichal