Ugotsta's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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. :)

  • Very nice, I haven't used a C2 project for a header yet, though I've used C2 to create web backgrounds (at ugotsta.com for example) and an ad-related game, among other miscellaneous things.

    Nice work with the header, fits nicely in the site.

  • Have you had a look at the Canvas plugin?

    It provides a number of methods to let you draw shapes, etc. If all you need is to be able to draw on the canvas, I imagine it'll work.

    By the way, I like what you've done with the terrain generation thus far. Looks like it'll make for something very interesting.

  • I'm trying to get the CacoonJS app running on my Droid Eris and unfortunately it just loads the opening screen and the app then closes. My phone's a bit dated in comparison to more recent phones but it still should at least load.

    Really hoping to see some advancement on this one from Ludei.

Ugotsta's avatar

Ugotsta

Member since 9 Sep, 2011

None one is following Ugotsta yet!

Connect with Ugotsta

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies