Ashley's Recent Forum Activity

  • Eternity is a long time to make computer games. The black hole thing might've turned out OK anyway.

  • I recently moved, when I get the internet installed again I'll try and sort out everyone's wiki access.

  • The Construct Wiki has partial documentation. It's a work in progress and a lot of it is subject to change. I do also appreciate how important a reference is for documentation purposes, but I think tutorials are important to help get beginners going. We should have both!

    Part of the problem is with so many plugins there is a lot of reference documentation to write. We need everyone's help to write it (it's an easy way to contribute to the project if you're not a programmer).

  • I can't imagine why that would happen. Post a .cap and I'll see whats going on when I get my connection back.

  • Does this example help?

  • The RTS behavior has an implementation of A* pathfinding which is pretty good for navigating around complex maps. There's also stuff like intelligent aiming you might find interesting (see the attachment further down the thread - the maths in the original file has since been built in to Construct).

    Construct's event system is also very capable of coming up with an AI system. It is, however, entirely up to you to code it. Quite often questions along the lines of "How do I make AI?" are asked, which is too vague to answer. I think you can make a fairly good AI system in a much simpler way than most people think. All it is is automatically controlled enemy characters - it's easy to come up with some simple rules that make them interesting enemies in gameplay.

  • Yes, as you would expect the distance() expression uses the Pythagoras theorum as you have written. I'm sure it's working correctly, and it just returns the distance between two points - which is always positive and is unrelated to quadrants. I've used it for several things now and it works fine as far as I know!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • using fast loops and one problem arised, it has to be very precise to work properly, meaning it needs to check every pixel step, and it lags the system having to do all of these checks, also if something gets too far lodged into another object it would run a continuous loop

    Yes, you have to do a lot of collision checks - doing this with the interpreted event system isn't going to be anywhere near as fast as the C++ implementation in the Construct runtime. Maybe it could be a system expression.

    Still, I like the idea of all objects having an editable 'hull' - a polygon you can draw around it. Both Physics and the dynamic lighting engine need a polygon instead of a bitmap mask and it would save you entering the same polygon twice. And a 'vector' collision alternative for Sprites could actually be fairly handy, but that's less of a priority. Animated sprites would make this a little trickier though... maybe it should be in the picture editor...

  • Yeah, atan will only give results over a range of angles (I forget, either just 0-90 or 0-180) which is kind of inconvenient if you want to measure an angle which is actually 270 degrees. Still, the C++ runtime library has a function called 'atan2' which works out the quadrants for you, which is what Construct uses. If you ever need atan2 for something else, I think angle(x, y, 0, 0) is equivalent to atan2(y, x). But the x,y and 0,0 might be the other way round. Can't remember.

  • Faggatron is right, angles can be outside the 0-360 range - 365 degrees "wraps around" back to 5 degrees again, because it's one full rotation plus 5 degrees. Same goes for negative, etc. If you want to display the result, add 180 to it Also, distance will give the distance in pixels, and if you're passing object coordinates, it will measure from their hot spots.

  • Yeah, I've read Firefox 3.1 will have an even faster javascript engine. But it's nice that this is spurring on competition. Maybe even Internet Explorer will get a faster javascript engine, it seems to be lost in the dust kicked up by Mozilla and Google right now

  • Are your sounds WAV files? The DirectSound object doesn't support MP3s, if I'm not mistaken.

    The samples on channels only support PCM WAVs, but the 'Play music' action supports MP3, WMA, anything Windows Media Player does.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,536,979 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
  • x109
    Coach One of your tutorials has over 1,000 readers
  • x69
    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
  • x38
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs