Olothontor's Forum Posts

  • 12 posts
  • Alright, cool.

    So, part of the functionality of it is being able to write custom scripts and plug them into the Event Sheet, amirite? Or was that just with Construct Classic, and hasn't yet made it into Construct 2 yet?

    If it is available at the moment, how does one go about it?

  • Awesome, thanks.

    Yet another question: is there a way to create a seeded random number generator?

  • Try Construct 3

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

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

    Scratch all of that, I found an Action that System can perform that rounds numbers up. Now, to figure out how to translate the formula into terms Construct can translate...

  • It works!

    <img src="http://filesmelt.com/dl/success11.png" border="0" />

    Step 2: Actually plug in the algorithm (not sure if I want Perlin noise or the Diamond-Square yet).

    Step 3: Add transition tiles to make it more natural.

    Step 4: ???

    Step 5: profit.

    Thank you, Kyatric. I've cleaned up the objects, the only things left are the things that I'm actually using.

  • Hehe, thanks Kyatric. Good to know.

    Alright, so I've got a simple random generator going... or I would, at least, if I didn't get this error: "Assertion failure: No default instance when creating object."

    As with most errors, it's *just* vague enough to let me miss what it's trying to tell me. Not sure what's going on.

    Capx.

  • Thanks, for both the welcome and the advice.

    I think I kinda see how I can do this now... but as I said, there are undoubtedly more questions to come. Again, thank you for bearing with me.

    The edit to my capx was very helpful.

    I'll post here again when I run into another wall.

    EDIT: How did you create subevents underneath of the subevent? Under the For Each loop of the Array you made, there are more subevents that handle the actual placement of tiles, but I can't see how you did that.

    EDIT2: I found one way I could do it, although I'm sure there's an easier way (create the subevent and then just drag it over to the right until the black line becomes an arrow).

  • I'm an artist. Lemme just throw that out there first and foremost. I don't code, and I very nearly failed the one Computer Science course I attempted to take (to be fair, that was in-part due to the teacher).

    Still, I'm trying out Construct to see if I *can* do this at all.

    The first thing I did was go through the Ghost Shooter tutorial, and that was relatively helpful, but left a lot of things open.

    Currently, I'm trying to take baby steps through a project of mine (a mashup of Advance Wars and Nethack, complete with procedural level generation). Figuring that terrain generation would be the hardest thing to achieve for me at first, I went ahead and got started. I want to use the Diamond-Square algorithm for creating my maps, but I don't know enough about how to handle arrays in C2 in order to even get started.

    So here's question #1 (of many, many to come): how on Earth do I fill an array with variables? Does it start filled with 0? And how do I key each number to be relative to a sprite?

    Here's my barren and pathetic excuse for a capx. It's got my sprites, though, and the little dog from one of the Zelda games acting as my camera for viewing the map (once I can manage to get it generating). Based on the algorithm, I was attempting to set each corner of Map to 4, and then I was going to set up something to 1). execute the algorithm itself, and 2). set each element in the array to translate to a sprite somehow (0 being water, 1 being sand, 2 being grass, and 3 being mountains). I'm starting simple, like I said. It'll look nicer and be much more complex later on, but for now I can barely get started.

    I really appreciate you guys bearing with me on this (those of you who read through my whining). Thanks a lot.

  • That was really helpful, thanks. We'll see how it goes once I get around to implementing it.

    I'll have to make each of these objects as spriteframes, though, currently they're all separate objects. It makes sense for them to be frames, though, I suppose. If I need them later as individual objects, I don't see why I can't just call that particular spriteframe and set the animation rate to 0.

  • Thanks a ton! Sorry if I'm making myself look stupid, I realize my issues are fairly plebeian in nature. :/

    So, here's a question: if I have say three or four different sprites that I want the computer to randomly generate at the top of the screen (randomly both in terms of the x axis and in terms of the sprites themselves), how would I work that in? I'm sure there are multiple ways.

  • Ah! So I was being an idiot all along. Thanks a ton, guys.

    Since I've only just begun my first game (based on the unfinished Vertical Shooter tutorial on these forums), I may have more questions later on. Stay tuned and watch me flounder, as it were.

    EDIT: Speak of the devil.

    I just finished up implementing the "enemy ships," but at runtime they come out warped on the game screen, and I haven't the slightest idea why. Since I have no way of showing you what's wrong, I uploaded what exists of the game so far (it's nothing serious, just a test to get used to Construct before I try to handle something larger and/or more ambitious).

    http://www.mediafire.com/?aydx4rmzcs2s24z

  • The problem is the Event itself; the System should create a new sprite when x occurs, but I can't set that, because I get a list of Conditions instead of Actions. The Creation events are in the Actions list.

    What irks me is that previously I've made System Actions simply by clicking Insert Event and having it take me straight to the Actions screen, where Creation is available as an option.

  • I'm new to Scirra and Construct, I came at the direction of a friend who saw my mild frustration with GameMaker. I'm a pixel artist first and foremost, and while I am taking Computer Science classes, I have yet to be anything but passingly familiar with programming languages, and yet it's really difficult to find programmers willing to work through a project to completion.

    I apologize if I missed something somewhere, or if this is obvious. I read through various tutorials and parts of the FAQ, and found nothing on this.

    Whenever I right-click in the Event Sheet and select Insert Event, it takes me to the screen for creating a Condition and not an Action.

  • 12 posts