Nimtrix's Recent Forum Activity

  • I'm not exactly sure what you mean, but you can make an object spawn an instance of itself on a different image point. Just do Circle -> Spawn another circle at imagepoint 1. (1 if it's the first imagepoint after the origin, you could also input the name of the image point "Imagepoint 1")

    But keep in mind, if you just set this up to happen every second, EVERY circle object is going to spawn a new circle on imagepoint 1. Unless you create some sort of iteration through the IID's of the objects.

  • You need to use an external host, most of us use dropbox (free). There are tutorials on the site on how to upload a file to dropbox, after your file is uploaded you just share the link on the forums.

    If you're looking for a way to have your characters follow the currently active character, check out the "How do I - FAQ" thread in this sub-forum, I'm pretty sure there are some examples there.

  • Hey, if you want to make sure I get the message you could type Nimtrix, which will give me a notification. I saw it anyway though, so here you go:

    goldboyj_edited2.capx (r114)

    First of all, I would stick to power-of-two values for your grid, since all resolutions on mobile or PC are either a power-of-two value or a combination of two power-of-two values added together. (google it if you don't know what that means)

    Notice how all the object sizes in the .capx above are all either 16, 32, 64 etc.. You don't have to do this, but there are many good reasons for using power-of-two values for image sizes and such.

    Also, using a big image as your background defeats the purpose of the TiledBackground object. Split your background into different objects to save space. (large images increase loading time and space requirements)

    You can see how I made a similar background just by using one 64x64 sprite and one 32x32 sprite (could have been 1x1 for that matter). I would recommend you do this instead of making a 800x480 background that covers the whole layout.

    To fix the offset you can see I subtracted the offset-values from the mouse position inside the floor() expression, then added them after the expression. I also added a clamp expression to keep the towers inside the grid area. Also note I moved the image point of all the towers, monsters etc.. to the top left corner.

    Long post, but I think that's about it. Feel free to ask if I left anything out.

    <font size="1">Edit: Noticed some silly typos, had to fix it.</font>

  • If you want to use expressions (Square.X, Square.Y), go to System -> Create object instead of using the spawn condition in the sprite object.

    Or you could use the spawn condition, but you have to select the square first, then go to the spawn condition and select the circle object. Image point you can leave as 0 if you want it to spawn at Square.X, Square.Y.

  • Put them all on a separate layer, select the layer and set the parallax settings to 0, 0. (panel to the left after you select the layer)

  • Well, Ashley has said on several occasions that a debugger is on the to-do list. (it was also one of the options in the new feature vote a while back)

    There are many threads on the subject already, and as newt pointed out in one of them:

    Not sure how a debugger would work since even the preview runs off of another program... your browser.

    However the text object can be used with events fairly efficiently.edited><editID>Nimtrix</editID><editDate>2013-01-02 23:02:45</editDate></edited>

  • if your still having troubles post a capx.

    Sounds like something is a bit off in your project, it would be a lot easier for us to help if we could see for ourselves. If you save your project as a single file and upload it to a filehost like dropbox you can post the link here on the forums.

  • It's actually a bit easier to pick a random object to spawn from, you can just do something like this:

    PickRandomSpawn.capx (r114)

    I'm not entirely sure what you mean by "have the enemy sprite avoid a square when the player is overlapping it", I assumed you meant the enemy shouldn't spawn where the player is overlapping, is that right?

  • Sure thing Kyatric, can't think of any at this moment, but I'll keep it in mind. <img src="smileys/smiley20.gif" border="0" align="middle" /> I'm sure there are lots of great examples that should be on that list.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can't really help you with this, but maybe if you tried saving your project in a project folder instead of a single file (.capx)?

    It probably doesn't have to handle any temporary .capx files then, so maybe you can at least save your project until someone can help you with this.

  • You've provided a good explanation of what's going on here, but one of the great things about Construct is the ability to share your project with a single file.

    If you save your project as a single file (.capx) and upload it to a free filehost like dropbox you can share your file here on the forum. (or recreate the problem in a smaller project if you don't want to share your entire game)

    So instead of having to imagine everything that happens while reading your post, we can just see exactly what's going on, which makes helping you a lot easier and faster.

    That being said, you should also have a look at the "System Expressions" in the manual. A lot of the math you've done can be simplified by using expressions like the distance expression, which returns a distance from one X,Y position to another:

    distance(Player.X, Player.Y, Enemy.X, Enemy.Y)

  • Category: Arrays

    Question: Random Terrain Generation

    Link to the answer:

    http://www.scirra.com/forum/forum_posts.asp?TID=61477&PID=377357&title=endless-procedurally-generated-world#377357

    Category: Arrays

    Question: Endless Procedurally Generated Terrain

    Link to the answer:

    http://www.scirra.com/forum/forum_posts.asp?TID=61477&PID=377590&title=endless-procedurally-generated-world#377590

    I'd like to recommend these great solutions by Sqiddster and R0J0hound respectivly. It's from the same thread, so you decide if you want to merge them or keep them separate. Cheers!

Nimtrix's avatar

Nimtrix

Member since 30 Dec, 2011

None one is following Nimtrix yet!

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies