Windwalker's Recent Forum Activity

  • Yes, that is what I feared it would lead to. I already tried to introduce a conditional check after the wait via instance variables... The problem is, if you chech for a condition in a higher event, and check for the same condition in a sub event for it, the check fails. I will try to simulate this behaviour in an example.

    But, I can't imagine how timer behaviour will be different in that regard, because after all, it is the trigger that solves the problem, not the behaviour itself. Could you elaborate some on this? Or maybe the smallest bit of example could be very welcome.

    Thanks;

    -Wind.

  • Hello all.

    I just wanted to share a reather inpleasant behaviour I encounter when I use wait in a particulat fashion and would like to ask for your opinion on how to apraoch such situations.

    I am using a relatively straightforward aproach as I am trying to create AI in an RTS type of game. There are a few tasks an npc can do, and it chooses what to do based on immediate environmental observations. If everything seems fine, for example, and there is a food source nearby npc gathers food. This happens as follows:

    1.move to food source (by pathfinding)

    2.turn to face the source

    3.wait 2 seconds

    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.

    now the same npc attacks an enemy npc if they come close. below is how it works

    0.detect enemy

    1.move to enemy

    2.turn to face the enemy

    3.call attack function

    4.wait cooldown seconds

    5.repeat

    Now the problem happens when the food is detected and the npc moved to food source, but also an enemy came nearby before the chopping of food, thus attack protocol is initiated. Even though the npc leaves the food source, runs to enemy and attacks it, still a piece of food is created on top of it and pinned and still the food source is reduced. Because it was there waiting for the 2 seconds to pass, but enemy came before chopping of the food and thus npc departed, but the code below the "wait" still was waiting in line to happen. And they happen, even if the npc was teleported to other side of the layout when the "wait" is over.

    I have a few ideas on how to fix this but I am hoping there is a much more easier way... Could someone with experience, especially in "wait" help on this?

  • Hello friends,

    As a couple of friends we are making some very small games to deploy on mobile, both ios and android. They are too small to be sold for a price but we were hoping to be able to add in some advertisements, which would (maybe) at least pay for store appliances and our server costs.

    We tried to integrate Leadbolt but we couldn't get even get aproval for our link. And we have no idea what we are doing wrong.

    Can someone with experience describe how to add advertisements, whether leadbolt or admob or any other kind into games when releasing with cocoonjs?

    Kind regards;

    -Wind.

  • Dear sir, I congragulate you on this awesomeness and would like to kindly ask how the hell you did the leaderboards all by yourself, especially when you had limited number of events.

    Kind Regards;

  • Effect all instances of object: (not sure if this is already present)

    I notice when, for instance during a collision, that only the specific instance of an object involved in the event will be effected by the actions, this is a super smart set up and is useful for obvious reasons, however on the off chance I want to effect all the instances equally regardless of which instance is involved, how do I go about doing that? Not sure if there is a check box somewhere that I am missing?

    I think this is doable with "pick all" command for the related object in the event.

    The others are well thought, +1 with script mode.

  • thehen whoa!? Portals got me thinking on how it could be done and... while I have couple ideas... All seem to really itchy! This one is really wonderful! Are we going to take our melons into a high-tech environment now ? :D

  • Hello there. I tried real hard but failed to send a badge in my signature. I recently won Tulamide's Help Blossom challenge, and he awarded me wih awesome badges I want to use in my signatures but I can't. See what happens below this post, for example. I only get the link displayed. Perhaps I'm doing sth wrong?

    I tried tinypic and dropbox to no avail...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • (Please forgive my arragonce below, don't take it seriously, it's a joke!)

    You don't hate arrays. You just don't know well enough about them and it scares you, and instead of accepting a long-term fear you change it into hate. A pseude hate.

    You also don't suck at them. All you have to do is to learn how to create for loops that scan through an array to either read or write values to it.

    Then you will notice how elaborate and gracefull arrays can be, and you will notice doors unlocking in your mind, how to create clever inventories, how to make very realistic tilemaps, map editors, data structures, AI routines in a very simple way!

    You can "sort" an array, thus if you put all characters ID and initiative values into it and then sort, you will get what you want.

    I think this is a wonderfull opportunity to open your mind to the ways of the arrays!

  • Most of the time you get to have to write your own movement controls, however what you describe really sounds like a car behaviour. At the worst case, you can modify the bullet behaviour to work as what you want, but it would take some work.

  • You could do it like this:

    condition: space bar pressed action: (no action)

    sub-condition: countdown>0 action : somethingsomething

    else

    action:somethingelse

    you can create sub-events by selecting the main event and pressing b

    the reason you chech for space being pressed is because you can't put else to a triggered event.

    I hope I could explain it?

  • Yet still, this feels so shamefull and lowly...

  • Hi there.

    In the main page, the box near the "Create Games. Effortlessly." text seems to be a video box, with the grey play button on it. But when I press it, nothing happens. It may be a discouragement factor for newcomers.

    I am using win7 64 bit, chrome, AMD 7970 with drivers updated.

    Regards;

    -Wind.

Windwalker's avatar

Windwalker

Member since 2 Apr, 2013

None one is following Windwalker yet!

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Email Verified

Progress

13/44
How to earn trophies