farflamex's Recent Forum Activity

  • Off the top of my head, I'd put them on a separate layer and rotate the entire layer. Not sure if that's suitable for your project.

  • troublesum

    Following on from what you've taught me already, just wondering, is there a similar system to the Constuct 2 'Pick' system, in PHP? For example, I can download all of my players from my database into objects, but I'm not sure how to work with the objects. Let's say for example, I only want to operate on the players belonging to team 1. In Construct, I do a simple 'Pick Players where Team = 1' sorta thing. In PHP, how do I do something similar? Is it more of an old-fashioned sort of approach where I start my loop, run through all the player objects, and do something along the lines of If Player->Team == 1 .... ?

    It's strange going back to this kind of programming. I hated OOP when it first arrived, now I can't live without it. But PHP does have OOP right, I just need to use a different syntax?

    I'm actually considering doing the entire 'guts' of my game in PHP. Originally I was planning to load everything into C2, process it in C2, then load it back to the database via PHP. But it seems like an unnecessary step when PHP could probably do the whole thing.

    Sorry to keep asking questions, feel free to ignore me, I'll work it out through experience but it's always good to get off on the correct footing

  • Try Construct 3

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

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

  • As for 'is it possible', yes it is. I haven't found anything impossible in C2 that can be done in other games (except 3d stuff). How to achieve it specifically, would depend on exactly which piece of their AI you're trying to achieve, but yes, it'll be doable.

  • Do you mean stepping through a loop? E.G For X = 0 to 10 step 2? If so, as far as I know, you need to do it manually.

  • Ah yes, the problem as you say is that when the mouse leaves the window, it's no longer tracked at all in C2 (if you track Mouse.X and Mouse.Y for example, they just 'stick' if you leave the window). There might be a solution to this, but I'd consider a different control method as it's too confusing. Or at least have the mouse cursor really prominent so it's very clear to the player that it's being used as the focal point. All I can think of, sorry.

  • Yay, cool

  • It seems to be the examples only. If I just load up a new project and add my own tables, they seem to work fine (actually they do in the examples too, but just give an error when loading). Here's the bug it reported.

    ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    Encountered second <i> before first was closed with </i>

    Condition: italic_flag == false

    File: Controls\EventString.cpp

    Line: 213

    Function: void __cdecl EventString::FragmentString(void)

    Build: release 174 (64-bit) checked

    Component: Construct 2 IDE

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort Retry Ignore

    ---------------------------

  • It's not a bug, when I was confused about it, Ashley set me straight. Now I just use the layout values to find the width and height, since it's always correct and up to date (perhaps not if you zoom, I don't know).

  • Does the distance to the mouse cursor matter, or just the angle? If it's just the angle, it shouldn't matter should it? The angle to the mouse will still be the same, if it just moves around the edges of the screen?

  • Looks excellent, you've done lots of work on that, seems to be very comprehensive too with every option I can think of. It did report a couple of errors when I loaded it up, but then went ahead and worked fine anyway, maybe something to do with newer versions of C2 or something?

  • Cool, this looks really interesting and seems to cut out much of the work. It's not really the work that bothers me, just that I don't like messy code, and this looks nice and neat. Especially since the code looks similar on both sides, which will really help with readability.

    Going to give it a try. Only downside I can see is that I'll need the add-on pretty much forever and I suppose that there's a danger of losing access to it in the future (mind you, I could store a copy on my server with all my data or something, just in case).

farflamex's avatar

farflamex

Member since 7 Oct, 2012

Twitter
farflamex has 15 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

18/44
How to earn trophies