lionz's Recent Forum Activity

  • You need to add conditions in the normal jump animation event such as 'when not doing high jump'. You'll need to have this as a variable or bool on the player, something like isJumping for jump which you may already have and isHighJumping for high jump. This means that it will know to only use the jump animation when not in high jump.

  • Awesome!

  • Hiya, for this I would rename it to Splatter, and have the animations set up for the colour so "white" "blue" "green" etc in the same way you did with the player. Then in your condition for enemy overlapping player, spawn Splatter, set Splatter animation to player.colour. So if player.colour is "blue", it will spawn Splatter with animation "blue", they can be related easily.

  • Yes you will come across these kind of issues if you choose to make a game that makes use of complex pathfinding. I have a rollercoaster tycoon type game with a ton of data but it's fun to handle. I would be careful of something that appears to be happening in that logic, it looks like the cooldown timer will be 0 when nothing is being built so it looks like the third event is regenerating the obstacle map every tick which is not good, unless you reset it to 3 somewhere. If you set it to 3 only on the start of construction then it seems to be an issue. Another problem I can see is that you don't seem to force the persons to leave, rather you set the building to solid based on the person leaving, so there could be a bug where you are waiting forever for them to leave and the building never becomes an obstacle for other people. Maybe you have an event further down which is if still on construction site then move them which would be useful.

    Edit: Ok I see while I was typing you added a trigger once. Do you have an event that forces the persons to move? At the moment it just checks if they are there.

  • That's correct, it's probably one of two things, you don't have Solids set as obstacles or you haven't regenerated the obstacle path once the buildings were created. If you create any new obstacles during run time the pathfinding objects won't see them unless you regenerate the map.

  • Hiya it's because when you run the function there is no longer a sprite picked, it then applies it to all sprites. You need to pass the picked sprite data through the function as a parameter, you could try something as simple as setting sprite.UID as the parameter in event 44, then in event 39 when you call the function, put in a compare condition if sprite.UID = function.param(0).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've put a fix in where you set a player level based on the colour combinations and an overlap check so that it doesn't keep trying to change the colour while it is overlapping, so you must pull the player away and overlap again.

    https://www.dropbox.com/s/6c4w7k63wxknf ... 2.c3p?dl=0

  • If jump key is down set vector Y to a lower number.

  • Platform behaviour > Set vector Y to a negative value, will produce a kind of sonic the hedgehog spring bounce effect which is probably what you need.

  • You could try something like :

    System compare two values,

    if LayoutName = "Layout 1" > play background music 1

    if LayoutName = "Layout 2" > play background music 2

    etc

  • > The problem or the fix for the problem? Better to take it into a PM with me as this will just spam the thread and I don't know if you are beginner.

    >

    Probably more useful continuing here so other uses can maybe learn from the discussion.

    Your choice, obviously. Just my 2.452144 cents.

    True I can continue it here, I explained the potential fix and will come up with one although i can't always guarantee that my shared files will be around forever.

    > The problem or the fix for the problem? Better to take it into a PM with me as this will just spam the thread and I don't know if you are beginner.

    >

    Unfortunately, I cannot PM you beause of a lack of Rep points. I'm the definition of a beginner; never designed a game before this!

    I understand the problem (I actually figured it out after my last message), but I don't really know how to fix it!

    Have a good day!

    I will look at a fix today for you, I think I know what it will consist of, a variable that decides the tier of colour and only becomes applicable once you stop the overlap.

  • The problem or the fix for the problem? Better to take it into a PM with me as this will just spam the thread and I don't know if you are beginner.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies