lionz's Forum Posts

  • If Goblin dies set Goblin_Died to true > Run rand

    Function rand

    If rand = 1-10 > Function Loot_Common

    If rand = 11-15 > Function Loot_Rare

    If rand = 16-17 > Function Loot_VeryRare

    If rand = 18 > Function Loot_ UltraRare

    Function Loot_Common

    If Goblin_Died OR

    If Orc_Died > Spawn Gold

    If ???

    Function Loot_Rare

    If Goblin_Died > Spawn Gold

    If Orc_Died > Spawn Sword

    If ???

    Function Loot_VeryRare

    If Goblin_Died > Spawn Dagger

    If Orc_Died > Spawn Armor

    If ???

    lots of ways..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ReanimtedNerd

    ah PushOutSolid, I didn't even know that existed. Not looked into pathfinding much. Nice fix! :)

  • Simulate move direction will only move the spider a tiny amount, you have to loop it. You could do that by setting variables when each corner is hit.

    I would structure the logic in a different way though : MoveToward Spider_Down, WhenOverlapping Spider_Down > MoveToward Spider_Left etc etc

  • I don't see a problem here, what do you need help with? Just keep the functions tidy and all is good!

  • This has been posted several times and I never saw a real solution. I solve it by stopping them when they collide and then continuing pathfinding when not colliding. I haven't seen a real solution from anybody yet though!

  • Would need a link to the .capx file to assist.

  • Global variables don't reset unless you ask them to. If you 'include' the event sheet on more than one layout the global variable shouldn't change value between layouts.

  • Kyatric

    Yep, that's how I usually set up the scrolling with parallax stuff for my HUDs. Not sure what the issue is that he needs help with : (

  • You called too many things 'Controls' or 'Controller' when explaining so my brain collapsed. What is the issue here? Please link to a .capx so I can better understand the issue.

  • Ensure the Timer object is on the layer that is set to parallax 0,0

    Ensure the Car is on a different layer

    Ensure that the Timer object does not have scroll to behaviour

    Ensure that the Car has scroll to behaviour

    Ensure that you are not just walking off the edge of the layout

    If this doesn't work then you'll need to link to a .capx as you did something random :)

  • Decent article and good advice etc for wannabe mobile app developers.

    Article Here

  • no problem, yeah that is just the semi-basics. yep you could just add the condition under the Lap Number = X events. e.g. Lap Number = 2 AND car overlaps finish line > do actions. many ways to do these things so have fun! : P

  • don't give the timer the scroll to behaviour. give that to the player or vehicle, whatever you're following in the game. leave the timer at parallax 0,0 on its own layer.

  • I made the .capx here using my own logic. Should help you out hopefully.

  • Making a better one now to show off the actual Timer behaviour. One sec :)

    Will add in the overview screen too.