basti's Forum Posts

  • I would also like to have a 'Vertical alignment' property (top, middle, bottom) of the text object. This would be useful when you for instance have a clickable menu, and wish to have a symmetrical space around the text where you can click.

    Is this something that can be implemented?

  • In the editor, select the object and change the 'Set angle' property to Yes (under the Bullet behavior).

  • Check out the changelog for r99, under 'Breaking change'.

  • I think you need a second loop to do this. You shouldn't have to worry about performance, since you only need to run these loops once when the layout starts.

    The system command distance doesn't pick any instances, you cannot count the picked instances like you do above (correct me if I'm wrong).

    I would do something like:

    For each Rock

    • Local number bcount = 0
    • For each Bomb
    • - If distance(Rock.X, Rock.Y, Bomb.X, Bomb.Y) <= 96 Add 1 to bcount
    • Set Rock.bombcount to bcount.
  • This is probably the same problem already described here and here. Are you using 'include event sheet' anywhere in your game?

  • The problem is in the way you are setting the sMY variable using the position of the Mouse. When you're on a touch screen there is no Mouse object to get the coordinates from.

    So change Mouse.AbsoluteY to Touch.AbsoluteY and it'll work.

  • I also ran into this problem, and after some serious debugging (removing almost every line of events) I can confirm that including event sheets is what is causing the error.

  • After some research I have found out that this is the same problem described here (game not working when including event sheets).

  • I'm just checking if anybody else has the same problem, as I'm debugging everything in order to find out what's wrong.

    My game runs fine in the stable R95 release when previewing. The same game gets just a blank screen with the following error message in R96 (running in Chrome):

    <img src="http://i49.tinypic.com/2iuuw4i.png" border="0" />

    I tried debugging in Firefox using FireBug, where I get the error:

    <font face="Courier New, Courier, mono">cr.eventinclude is not a constructor

    var inc = new cr.eventinclude(this, parent, m);

    eveng.js (row 74)</font>

    So, has anybody else experienced the same thing? As mentioned, I'm trying to debug everything in order to find out what's causing this. The game runs fine when reverting back to R95.

  • The problem is that both events run, and the first one is showing the menu and the other is hiding it.

    You don't need the Every tick event. Move the keyboard event to the Every tick event block (and delete the second keyboard event), delete the everytick event and put an 'Else'-statement above the second 'menu pause_screen' event.

  • Ok, I understand. Thank you for the answer!

  • Is there a way to disable the auto pause functionality when the game loses focus (e.g. when the user goes to another tab in the browser)?

    Sometimes it would be nice to allow the user to browse the web (collect information, for instance) or do other stuff while the game is running - and be able to have a timer ticking all the time.

    I know it's possible to compare 'real time' using wallclocktime, but I find it tedious to implement (or change) all the timers and counters using this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It would be really useful to get access to files included in the project. Currently, the games only get a black screen when running in CocoonJS launcher (android) if including the Ajax object (even if not using it).

  • delgado - are you using the Ajax object in your game? I've noticed that the black screen occurs when including the Ajax object. This happens even if you don't use the object, it happens as soon as the Ajax object is included in the project.

  • Here is an example (including a capx), hope it is what you are looking for.