2009antz2009's Forum Posts

  • i have it set for characters to randomly spawn between layout width and height. then i have it set to at character spawn set initial.x and initial.y to characters current position when spawned

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't see any code referring to how you set you initalX or initalY. If those numbers are 0, then the objects would all be going to (0,0).

    thank you for this. after combing through my initial x,y code i noticed i had not set them properly and they were both going to 0x and 0y at the beginning of the layout. problem solved thank you greatly

  • s1052.photobucket.com/user/2009antz2009/media/test2.png.html

    for some reason it wont let me upload pictures to this forum and everyone of my posts have to be approved by a mod? so i apologize for the slow replies

  • ok so im making characters that roam at "random" but for some reason they always go to the top left hand corner of the screen. i posted a pic of how i have it setup. i just need them to wander not group up. lol.

  • thats how i have it set up right now. so the thirst lowers at a rate of random(1,5) every random(1,3) seconds where as the hunger lowers at a rate of random(1,3) every random(2,5) seconds. so if the character is both low on thirst and hunger i would like the character to prioritize getting water over getting food due to how much faster it depletes.

  • so im making a game where the characters are npc's that wander randomly. i can make them wander im just wondering if there is a way to prioritize certain events. example below.

    i am using a player state engine to do this

    if "characters" thirst is below 40%

    set player state to "getwater"

    if "characters" hunger is below 40%

    set player state to "getfood"

    how can i, if both variables are true. prioritize the "GetWater" over the "GetFood". right now when both variables are true. the character just stops.

    thank you in advanced

  • add platformer behavior

    event

    ON TOUCH

    sub conditions

    if touch.x is > than player.x

    actions

    simulate "right"

    simulate "jump"

    sub conditions

    if touch.x is < than player.x

    actions

    simulate "left"

    simulate "jump"

    hope this helps