makotto's Forum Posts

  • Or assign one spritefont object per word, and create an on trigger condition based on some instance variable of the spritefont object.

  • Okay, seems that at some point you are adding the money the player earns in the event to the total money the player has. The way you describe it now, it seems more as a small bug. Try to figure out when are you adding the money earned to the total or post a capx so we can help figure it out.

  • You can use the "random" expression to create a random number:

    for example random(10) will generate a floating point random number between 0 to 9 (0.5, 2.0, 7.87, etc.)

    if you want only integers use floor( random(N) ) this will generate random integers between 0 to (N-1)

    if you need to convert those to text (string) use the str() expression:

    str( floor( random(10) ) )

  • Construct2 does not know what your variables names stand for. It is up to you to give them meaning.

    For a software a variable called MaxSpeed and another called Playerlifes are basically the same, just 2 variables that store numbers. Variable names are useful for you, the programmer, to remember how are you going to use them

  • My bad Sol. Never done it with same objects and same names.

  • Construct2 does not allow you to copy and paste events from different Capx projects. It may sound time consuming, but including the function object, and having a separate events sheet only for common functions has worked for me.

    You won't be able to copy+paste the event sheet, but at least it is easier to duplicate your functions.

  • Lo mas probable es que la imagen que usas para el Tiled Background tiene un borde blanco. Que programa usaste para generar la imagen?

    This may have something to do with the way you saved the image for your tiled background. Sometimes the images ave borders and that creates the white stripes. What software did you use to save your tiled background image?

  • If both tank and turret have the origin coordinates in the point where you want them pinned, just Spawn the tank and the turret separately, and once both are spawned pick the turret and set Turret.X to Tank.X and Turret.Y to Tank.Y

  • Try your build with the crosswalk option. Once you compile with the XDK choose Crosswalk for Android.

    Are you using any computational intensive plugins (i.e. physics)?

  • I don't have any issues with crosswalk loader. Just make sure you update all your resources (images, sounds, etc) when you build your project.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you say "For each", the event executes against every instance of monster. Without the "for each" it is not clear if it will test each monster, or only one instance of monsters.

  • There are 3 things needed:

    Platform behavior (on enemies)

    Solid behavior (on enemies)

    a collision polygon larger than the actual enemy.

    I made a quick capx example, you can get it here:

    https://onedrive.live.com/redir?resid=C2D3604A25210B53!3504&authkey=!AG5beWa9UtR8lgs&ithint=file%2ccapx

    Good luck.

  • Hi guys,

    I created this game as a part of a presentation for a class. At the present state is more like a digital game board, and it not a full game. You can use it as a template or a good starting point for a presentation.

    Here is the link to download the (zipped) capx:

    https://db.tt/dOEXNplc

    Most assets are by Kenney (kenney.nl).

    Let me know if you have questions/comments.

  • I worked on a prototype and used a mix of sprites and tiled background. I was just curious.

  • Are you using sprites, 9 patches, or tiled backgroundo for the platforms? (Just curious).