Ashley's Recent Forum Activity

  • Hey Burkey, long time no see

  • Question: is there an event that goes like "on previous event done" ?

    I don't understand... if you want a condition like this:

    + Condition

    -> Actions

    + On previous event done

    -> Actions 2

    This is equivalent to

    + Condition

    -> Actions

    -> Actions 2

    How is such a condition any use...?

  • Hmm, looks like some kind of stack... it should be possible with the array object, if you keep track of how many items have been read with a separate counter or something. If you place an Array object in a container with the unit, you can store a whole array of data on a per-instance basis, which might be useful.

    BTW Terminal Orbit never had a build queue, construction units were one-shot...

  • How do i negate events. To my dissapointment, there was no "right click-negate" option. This should really be included.

    Right click, Invert condition!

    [quote:ohfle3tu]Secondly, i still haven't managed to distinguish between "or" and "and" event relations.

    All conditions in an event have to be met for the actions to run, therefore there is an implicit AND between them. ie.

    + Condition 1

    + Condition 2

    + Condition 3

    -> Actions

    The actions only run when (Condition1 AND Condition2 AND Condition3) is true.

    OR logic can be achieved either by using the OR condition, or duplicating the actions over two events, or by using functions, eg.

    + Condition 1

    -> Actions

    + Condition 2

    -> Actions

    This is comparable to (Condition1 OR Condition2) -> Do 'Actions', but isn't quite the same, since it's possible the actions will run twice if both conditions are true. The OR condition resolves this.

    I do want to remove any annoying usability issues that people may run in to, so is this enough to satisfy your eventing?

  • The 'move to' actions in the RTS movement run a fairly CPU intensive search algorithm to generate the shortest path to the destination. I need to see the .cap to be able to tell, but my best guess is you're running the 'move to' action constantly over and over again, which means its running thousands of pathfind algorithms every second. You only need one 'move to' action and they will generate a path and move along it - otherwise, if you want to reach a moving target, use a 'move to' once every second or few seconds, to keep CPU usage down.

  • I had a quick look over the example with the 10 example events. Here's a very quick review:

    1 - triggers as subevents to triggers shouldn't be allowed, i'll try to fix

    2 - as above

    3 - nothing wrong with this: when global value = 0, pick a random object. That makes perfect sense.

    4 - it's up to you to order your conditions correctly. It doesn't actually matter which way round they are, but as you say, it might be clearer to say 'Global value = 5, pick objects with height < 6'. However, I don't think the IDE should enforce the order of your conditions here, since different ordering might make more sense in different situations, for readability.

    5 - triggers should be first condition, i'll try to fix

    6 - Makes perfect sense, will loop until y >= 400

    7/8 - Not sure whats wrong here?

    9 - string literals shouldn't be able to be passed to value parameters, i'll try to fix

    10 - What's wrong with this one?

  • Just finished my last exam today... Woo!

  • In any resizable game I've developed, I've always just positioned everything relative to the window, ie. using the expressions ScrollXLeft, ScrollXRight, ScrollYTop, ScrollYBottom (and DisplayWidth, DisplayHeight). This way, no matter what you resize the window to, the objects automatically position themselves relative to the window.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can pass information to the server in the query string, and return values from the server in the page that is generated. That's two way communication. What else do you need?

  • You could try using the Download object to download a page such as myfile.php?data=1234...

  • I think you want the boxLeft/boxTop/boxRight/boxBottom float parameters, which are detailed here.

  • Firstly, j0h, please stick to one username only. Looking at the IPs of new registrations you seem to have at least 3 accounts here now, and possibly more. That is confusing for me and the users, please do not sign up any more and stick to your current account.

    [quote:3vihb7hl]The basename of an object is "sprite", and it this "leakes" into the events sheet editor. Thats confusing.

    It's good practice to rename it as soon as you insert it - Construct can't second guess what you're going to use it for. Although:

    [quote:3vihb7hl]Perhaps a "Please name this object" dialog box at the creation of certain objects is a good idea?

    This is a good idea and something I had planned.

    [quote:3vihb7hl]If you think this trough, then the only logical aproach is to start each new event blok with a "flow event" ... where "top down" is the mainway of running it, with exeptions to events that need a inmediatly interrupt, as mouse events do.

    This part of the event sheet editor was designed a long time ago; originally, it was coded by another developer, and at the time I disagreed with him and wanted to make sure triggers must be the first condition of a top-level event, and never be allowed in subevents, since this clarifies how the runtime runs the events. With triggers in subevents, it does obscure the top-down approach, since logically it goes upwards to read above conditions in parent events, then downwards to run actions and other subevents. I don't like this, so I'll see if I can change it.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,425,641 followers

Connect with Ashley

Trophy Case

  • 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
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x108
    Coach One of your tutorials has over 1,000 readers
  • x62
    Educator One of your tutorials has over 10,000 readers
  • x3
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x35
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs