ptbcomposer's Forum Posts

  • You need to use...TADA!!!! GLOBAL VARIABLES!!!!

    Seriously, though, you do! Try this. Make a global variable called something like "currentlayout". On the start of each layout set "currentlayout" to the number of your current layout (e.g. for "Layout 5" the global variable would be "5"). Then for your sounds event sheet, do "At start of Layout" and add a condition using "Compare Variable" with a value of the corresponding layout for each sound.

    Make sense?

  • There could also at least be a way to preload by tag.

  • Use Paint.net. Free program with low overhead. Use the magic wand tool and select the background and delete it. Done. Save as a png. You now have a transparent background.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not too sure about there being a problem with too many event sheets. I think it's when you include too many event sheets to other event sheets. My project will probably end up having something like 80-100 event sheets but I'm not going to include them all. I'll have to wait and see what happens I guess, but how can we be expected to make large games if the system will get bogged down by event sheets that aren't even in use?

    Try to have at most like 5 event sheets being used at at time.

  • This has been updated with sketches of the images that will be used in the final version. When that is done, I will upload to Scirra Arcade. And of course I will improve the button layout.

    http://wayofthesax.com/wip/rhythmminigame/

  • Hmm, yes, thanks! Also, I forgot to mention. You can reset global variables to their initial value in the System events. That's the reason to make the clock text box set to a global variable.

  • Try this. Global variable for clock. Every tick set clock to "dt." This will make a consistent clock regardless of framerate. Make a text box. Every tick set text to global variable clock. I don't know how to have it show only seconds, but someone else might.

  • Use system timescale 0 and then right after set pause button only timescale to 1.

  • They should put this at the top of the Scirra website...

    "When in doubt, use global variables."

  • What I am going to do for my website is code the main page (index) in regular html (in Expression Web) and use C2 to design my menus and anything else one would normally do in flash. My music website (www.philipcomposer.com) uses old-school frames and div and a cheap-looking flash menu made in CoffeeCup Flash Menu Builder; each frame on the index links to a different html doc . I am no good with code (e.g. flash) so I'm going to use C2.

    Maybe with HTML5 we'll see a resurgence in frames and div tags. So the web crawlers will be able to find the index.html page, which is comprised of a combination of regular HTML and also HTML5.

  • I got it! The solution is to use the system "Trigger Once While True" Condition with the "Is Overlapping" event.

    Use the arrow keys to move the player around (straight down is where the enemy is).

    Here is the capx...

    http://wayofthesax.com/tests/enemy%20proximity%20fading.capx

    *pats self on back*

  • Oops, sorry about that. Damn, now I want to figure this out so I'm gonna have to do it.

  • Use 2 fade behaviors for the same enemy. Fade1 fades in however long you want and "0" fade out (tell it to not destroy on fade out); Fade2 will have "0" fade in and however long you want it to fade out (tell it also to not destroy on fade out so that the same enemy is still moving around when it's invisible). Also make an empty sprite (no image, just a blank box) and link it to the enemy (look this up in a tutorial; the box will move with the sprite); make it as big as you want for however much space you want there to be between the player and the enemy when it appears.

    For events, when the enemy is "On collision with" the blank sprite, "Start Fade1"; when the enemy is not "On Collision with" (inverted) the blank sprite, "Start Fade2".

    If you are spawning enemies when they get in proximity with the player (which is probably what you should do to keep the game running smooth), then make sure you tell Fade2 to destroy on fade out (ignoring what I said above).

  • Oh, and I just tried. This works even when switching between browser tabs.