lolpaca's Forum Posts

  • Sorry, I don't understand. The event I want to trigger is one that has doesn't necessarily relate to the objects being picked - I just want to test that a certain state is true. So for instance:

    If all [sprite - Zombie] are [boolean - Dead], then [Go to next level]

    Or alternatively

    If 20 [Zombie] are [Dead], then [Give extra life]

    As it is, I can only figure out how to test if any Zombie is Dead or not, not all of them or any given number of them at once.

    I can't work out how to do it by evaluating - please could you explain the exact events you'd use to do that?

  • Hi, I'm sure this is something pretty simple, but for some reason I don't seem to have come up against it before. Basically, I want to test if a condition is true for each instance of an object, and do an action if so. For example:

    If all [object] Zombie is [boolean] Dead, then xxx

    It'd also be handy to know if I can test for certain numbers of an instance, eg

    If 20 Zombie is Dead, then xxx

    How do I do this? <img src="smileys/smiley4.gif" border="0" align="middle" />

  • I noticed this last night - music in my game started going weird and distorted immediately after the Firefox update. Glad it's not just me!

  • Hi Vilsu,

    I was in exactly the same situation as you a few months ago - used Klik 'n' Play since small times (I was even a member of the Klik 'n' Play Klub <img src="smileys/smiley17.gif" border="0" align="middle" /> ) and moved onto MMF2 about a couple of years ago. A little later I started reading about Construct 2, made the switch and I've never regretted it.

    Not to do down MMF2, which is still a great program, but C2 is very liberating in comparison. It's much more flexible and doesn't have the illogical, finicky restraints and the frustrating brick walls you'd occasionally hit with MMF2. The way the event system works is very similar, so if you're well-versed in MMF2 you should find it easy to switch over. C2 is also updated much more often.

    I'd say MMF2 is somewhat easier to use and I must admit I miss the drawing and animation tools, and the rather decent library of graphics, music and sounds that came with it, but that's all. The Windows 95/Windows 7 comparison is pretty apt: it just works better.

  • Hey, sorry to keep asking questions about this, I don't really know anything about CSS! Could someone please tell me how I can change font colours from line to line or even word to word in the Text Box object? Eg:

    <font color=gray>Billy:</font> <font color=red>Hello.</font>

    <font color=gray>Bobby:</font> <font color=blue>Hello, you.</font>

    I think it's possible because I've seen someone use text boxes like this before, I just can't figure it out. Cheers!

  • Out of interest though, has anyone tried doing anything like I described and is a text box the best thing for it?

    Basically I want a scrollable, read-only text field where I can vary font colours from line to line and keep a log of all the dialogue that's been spoken in the game. Sort of like the action and conversation logs in old-timey RPGs. The Text object itself would be ideal (as you can append text and stuff) but if there's a way to make it scrollable, I haven't figured it out yet.

  • I did - that command works for the Text object but not Textbox (is this a bug?) and I need Textbox for the scrolling & multiple text colours. However, I did find scirra.com/forum/multiline-textbox_topic48864.html which seems to be what I'm looking for, though I haven't tried it yet. Cheers!

  • Argh sorry, clicked post too early!

    I'm trying to create a dialogue box for a game that records all the conversations that have happened, ideally showing different speakers in different coloured text.

    I've been trying to use the Textbox object but can't seem to figure out how to add line breaks - all the text I input just appears on the same line. Do I need to use CSS to do this and how would I do it? Also, is the text box the best tool for this or is there a plugin or something that would work better?

  • I'm trying to create a dialogue box for a game that records all the conversations that have happened

  • Just wanted to say that I've been using C2 for about a month now and I absolutely love it - like Arima said, having come from MMF it just feels like being set free :) I'm resurrecting long-abandoned projects and getting ideas for new ones all the time.

    GJ developers, I hope this program keeps evolving and gets all the success it deserves.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, I've figured it out now. Works a treat!

  • Very likely you would expand a circle outward from the center of the player (maybe using Sprite.setScale()?), and check for collisions at each step. If a collision occurs, you would move the enemy(or whatever) object at an angle (found by taking the system.angle(x1,y1,x2,y2).

    Cheers - I'm with you up until you said "taking the system.angle(x1,y1,x2,y2)" - how would that work and what action would I use? If I'm applying an impulse, how do I tell it which direction to push them in? (So enemies above the player are pushed up, ones to the right are pushed right etc)

  • Hi there,

    Still quite new to Construct 2 but having a great time with it. At the moment I'm working on a top-down, twin-stick shooter (a l� Smash TV of old).

    I'd like to add an element where the player can press a button to release a 'shockwave' from his suit, pushing enemies back - so a rapidly expanding circle with a defined radius that has a knockback effect on anything it hits. Is this possible and how would I go about it? I've read the tutorials and I've been playing about with the physics functions a bit but I'm still not really sure where to begin!

  • Hi, I've just had exactly the same thing happen to me - could you explain how exactly you recovered the project?

    Also, I'm not sure what cleaned my temp folder - AVG 2013 seems a likely culprit - any idea how to stop it happening again? (Either by changing settings or making it save to a different folder)

  • Thanks very much for the replies, from what I've read of Construct 2 that was the impression I was getting. Look forward to working with it!