fm4fanAT's Recent Forum Activity

  • first example

    No, only the one card you drag gets a new position (that's what the instance variable is for). Except - this is the flaw - if you overlap with two cards, two of them get a new position - could be easily fixed, but version 2 is better and so there is no need for that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • didn't like the version I made.

    So here is the better one - that doesn't have flaws

  • Here is a version (not the best, but works)

    just make an instance variable to objCards

  • I'm not sure if this is your problem

    if you start dragging then you store the XY as a variable and if on drop is overlapping with objCard then set position to variable.

  • Here are 2 ways to do it

    1. Event objEnemy > is NOT "on-screen" | system > create objEnemy

    Here you check if the object is on-screen and invert it. Then you run a loop for how many new enemies you want to spawn (the loop number could come from a variable)

    2. with a variable

    For every enemy you destroy you subtract 1 from your variable. If 0 then create new enemies and add 1 to your varEnemy

  • ZephyrKing THX for showing a video

    [quote:2uygutdt]Ms edge runs my game so smoothly compared to chrome and other browsers it actually pisses me off

    That reminds me of some performance issues I posted before.

    C2 games have troubles on 2 of my 3 PC's.

    Here a lot of the time Edge runs smooth and Chrome or NW.js sucks

    You can try the performance test from Ashley to see how your PC tests

    http://www.scirra.com/demos/c2/sbperftest/

    Here it all depends on browser and the computer

    My gaming rig and the i3 laptop drop around 180 frames and score worse than a MotoX mobile

    The i5 laptop 0 drops

    W10 i3-5010U, 4GB Laptop - has some major issues with HTML - but otherwise a great and fast Laptop

    W10 i5-6500, 16GB, GTX960, SSD Workstation - has also some issues with HTML - otherwise perfect

    W10 i5-5200U, 8GB, SSD Laptop - no issues at all

    Still didn't figure out what is wrong with (especially on my Skylake workstation) - when I try a test like http://www.kevs3d.co.uk/dev/canvasmark/ my computers behave like they should.

  • want to share your capx?

    You find some performance tips in the tutorial section

    here some points

    • Place objects using the same blend modes or effects on the same layer
    • make sure all those objects are placed on their own layer
    • Dont Changing Text objects every tick (specially large text objects)
    • Avoid large areas of overlap between objects
    • Avoid objects with large areas of transparency

    and of course it depends on the computer - but if you play other games that run smooth, then it's your project.

  • persist layout?

    There is an example if you make a new project and search for persist

  • There are different solutions (like helper objects that disappear, instance variables or loops that check if already used)

    But the best one would be an Array. Here you randomize your Array and pull a number from it (see tutorials for Arrays)

  • Th easiest thing - without performance loss would be just a red sprite that gets resized (full screen)

    with opacity 30% or whatever or color with alpha,

  • As gumshoe2029 mentioned functions would be nice to implement so you don't have to write the code again and again.

    here is a tutorial that shows you how you could make it with all questions in a single textfile

    https://www.scirra.com/tutorials/4810/m ... e-equation

    Or a generated version of a math game

    https://www.scirra.com/tutorials/1418/trivia-game

fm4fanAT's avatar

fm4fanAT

Member since 19 Jan, 2016

Twitter
fm4fanAT has 1 followers

Trophy Case

  • 8-Year Club
  • Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

10/44
How to earn trophies