LittleStain's Recent Forum Activity

  • Instead of using different sprites, you could use different animationframes.

    I opened your capx, but there are only two events, which are also quite useless. Your black sprites all have different or no behaviours at all.

    When I look at the capx You provided it looks like you haven't tried to improve it or just don't know how to work with Construct 2.

    Do you understand how behaviours, events, variables, conditions, subevents and actions work within Construct 2? If not I would recommend following the beginners-tutorials in the tutorial section, so you get a better feel as to how to work with Construct 2.

  • Only issue left is what you'd like to happen when player has food and is walking home.

    Attack while keeping food?

    Destroy food on attacking?

  • Something like this would probably work:

    1.move to food source (by pathfinding)

    2.turn to face the source

    3.set boolean variable "WaitingForFood" to true

    4.Set timer "FoodWait" 2 seconds

    1 On timer "FoodWait" if boolean "WaitingForFood" is true

    4.create a piece of food sprite over npc and pin to it.

    5.reduce food value remaining in food source

    6.find path to home.

    0.if timer "cooldown" = 0 - detect enemy

    1.move to enemy and set Boolean "WaitingForFood" to false

    2.turn to face the enemy

    3.call attack function

    4.Set timer "cooldown" for whatever seconds"

  • First, you dont have to use so many different sprites, it's much better to use instances of the same object.

    Second, add a movement behaviour to the red Sprite.

    Third, use on collision or is overlapping conditions on the black sprite(s) or set it (them) to solid and use a behaviour for the red sprite than interacts with solid behaviour.

  • No, Construct2 doesn't have the light object as is in construct classic. There are however numerous examples of shadowcasting on the forums.

  • Although the beginner-tutorials may not be about what you would like to make, they give you a lot of insight on how programming with construct 2 works.

    Do you know how to work with events, conditions, global variables, instance variables, instance picking among others?

    If not, please try to follow some tutorials, if so, what are the specific issues you are running into at this time?

  • easiest fix would be to use timer behaviour instead of wait and add an extra condition to on timer to check if player is still at the right position to receive the food.

  • set a variable to choose(1,2,3,3,3)

    then if variable is 1 spawn ammo

    if variable is 2 spawn healthpack

    if variable is 3 spawn blank

    this way 3/5 of the time the blank is spawned.

  • That is possible..

    something like this will work:

    for each enemy

    System compare two values: distance(player.x,player.y,enemy.x,enemy.y)<200

    -player stop

    -player rotate toward angle(player.x,player.y,enemy.x,enemy.y)

    every x seconds

    • player spawn bullet.

    although pick by evaluate would probably be better.

  • I only have one question:

    Why does the player need to be on the same layer?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have to use tags for the audio and not the audio name.

    so, play "AXE WOOSH" with tag "AUDIOTAG"

    stop audio with tag "AUDIOTAG"

  • Just a look at the effect of changing only the length of a person has in my project.

    <img src="https://dl.dropboxusercontent.com/u/48563442/bodyshapes-lengte-voorbeeld-facebook.jpg" border="0" />

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies