Ugotsta's Forum Posts

  • Ha! Yes, that is a great idea for a 404 page, nicely done!

  • Actually, if you're considering building a community site, I'd take a look at either BuddyPress (for WordPress) or Drupal Commons.

    I haven't actually gotten around to trying out Drupal Commons, but I've heard incredible things about it. BuddyPress I have used and it's dead simple to setup a full-blown community hub with it.

    Both of these solutions include integrated forums too, so you wouldn't need to install a forum software alongside them.

  • Wow, it's mighty kind of you to provide the capx file for this! I'm quite sure lots of people will find great use with it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • WordPress is great and it's by far, the easiest to use and get accustomed to but yeah, it was built for blogging and getting it to work for other things generally takes a bit of work or money.

    As an example, there are themes like

    ReviewIt that illustrate the possibility of a game review site with WordPress.

    There are also highly customizable themes like Headway that let you create pretty much any design you want right from the admin area.

    You could potentially use individual blog posts to represent individual games, though custom post types provide a more elegant solution and admittedly custom post types still would take some work to get used to and then customize for the purpose.

    For that reason, I think Drupal is especially well suited to the task of creating an arcade-type site. However, Drupal is generally more difficult to learn than WordPress, since there are so many more resources, free and paid, to help you learn WordPress. Plus, WordPress' interface is arguably the easiest to use of all CMS.

    Just to add something too, if you're looking for something free that's really on the cutting edge, check out Wakanda. It's not a CMS, but it's a robust development tool that you can use to easily build any database-related site. Plus, it's all about JavaScript, which is C2's native language as well. :)

  • I think the solution really depends on the complexity of the math problems you have in mind. Will they be very simple addition or subtraction problems, perhaps for children?

    If they're advanced math problems, you may need to get into some lightweight math parsing or perhaps rely on JavaScript's eval function via the CallJS plugin (it's probably safer to use an external JavaScript parser like the this one).

    For simpler math problems, you can probably just create 2 random numbers and randomize an operator with something like the following:

    x = int(random(1)) + 10

    y = int(random(1)) + 10

    operate = choose("+", "-", "/", "*")

    MathString = str(x) & operate & str(y)

    You can store a series of such strings within your array, then when you choose a random element out of the array, solve it using a special event sheet.

    That'd be my own idea for a solution. Perhaps others may have better ideas.

  • Yeah, I've pinned the text input to another object in a project of my own. There's not really a feasible way, in C2 or otherwise, to drag and drop a text input, given the way a text input works.

  • Laurent, a multiply effect would assume you're working with 2 images, no? You'd be applying a multiple effect on one image based on another?

    I would think that would have to do with compositing, like the standard OR, XOR and additive effects already built into the Sprite object. Strangely, there's an additive effect there, but no subtractive.

    For that matter, have you checked out the "additive" effect on the Sprite objects? It seems to look rather like a multiply effect.

  • randomrick, the Distance expression he gave is the code you'd use. There's more on the Distance expression, as well as expressions in general, at the following:

    http://www.scirra.com/tutorials/77/native-expressions-in-construct-2/page-1

    Also, it generally is much easier to provide assistance if you provide a .capx to show where you're currently at. It's easy to make adjustments and even add comments to other's .capx posts.

  • eryltalbot, an array wouldn't store images by default but I'm fairly sure you could use Pode's Extract Sprite to base64 string plugin to get a sprite image into a base64 string format which you could then store in any array.

    There are quite a few other plugins in the plugin list that can work with base64 images as well.

  • Bob Thulfram, good article, thanks for linking to it! For anyone further interested, there's an excellent talk on all of this from Douglas Crockford, focusing on the "good parts" of JavaScript, via the following video:

    [TUBE]http://www.youtube.com/watch?v=hQVTIJBZook[/TUBE]

    I was actually meaning to create a post here in the forums highlighting the fact that with C2, you don't need to worry at all about these things. Generally, you don't need to worry about syntax errors as well. In my opinion, this method of scripting really does lend very well to workflow, ala less debugging.

    I also forgot to mention in my original post, it would be a bit ironic if C2 was made to pass JSLint, yet it relies on jQuery which doesn't quite. ;)

  • For anyone unaware, JSLint is a JavaScript code quality tool created by JavaScript guru Douglas Crockford. I fully realize JSLint is one developer's perspective on how JavaScript code should be structured, but thought it would be a potentially good marketing piece for Construct 2 if it perfectly passed JSLint inspection.

    That said, I just ran an exported c2runtime.js through JSLint (via Notepad++) and it had nearly no issues. The following illustrates one such issue.

    Here's a portion of the original exported code:

    <img src="http://dl.dropbox.com/u/41325628/construct2/jslint/c2_conditionals.jpg" border="0" />

    And here's an adjusted version that passes JSLint:

    <img src="http://dl.dropbox.com/u/41325628/construct2/jslint/c2_conditionals_alternate.jpg" border="0" />

    Just that small change in the structure allows that one item to pass through JSLint. And with that adjustment, there were only a few small issues left over, as illustrated in the following:

    <img src="http://dl.dropbox.com/u/41325628/construct2/jslint/c2_jslint.jpg" border="0" />

    Of course, I'm not expecting changes to be made to C2 to accommodate JSLint. I was just thinking that since it's so very close to passing JSLint inspection, it'd be a pretty nice thing to be able to advertise that it does so.

  • There's not really a way to change a sprite's color in that way. You could try the Canvas plugin, which does include a gradient fill.

    There's also the SVG Canvas plugin, which lets you use any SVG code, which can include gradients.

    Either of those plugins will allow you to make changes to the gradient at runtime.

  • Yep, seems to work great. I'd suggest letting people know what the controls are though when you post. ;)

    W to accelerate.

    A to lean back.

    S to reverse.

    D to lean forward.

  • Hand drawn backgrounds sound great to me and no, there should be no problem with drawing the full background manually. There may be some things to consider though, like the loading time for the images, if they're large. You may want to compress them as JPEG files to help with the filesize.

    If the background is full of repeating textures, you might want to just bring the textures into C2 and use the Tiled Background.

    As for transitions, there's no built-in way currently to do transitions. You'll need to do them manually. There's one great example I can think of posted by a user in the following thread:

    http://www.scirra.com/forum/example-custom-transition_topic50936.html

  • I don't think there is currently and I agree we could use some further method of visual organization for larger projects. I've got some projects that got quite big and they're a bit harder to follow now.

    Personally, I could use just a couple, maybe even just 2, alternate color comment sections.

    I also thought it'd be neat to have notes that overlayed the event sheet, preferably ones with arrows that you could point to relevant areas of the sheet. Just a bit of a daydream. :)