ddaan9's Forum Posts

  • Hello,

    I have a problem. For a project i need to generate information and save it so i can use it/ view it somewhere else. This is what i need to do:

    For my game i need to hire staff. Each person should have 4 stats: Name(random), Skills (random from 0-100), Popularity (random from 0-100), costs (random from 0-100).

    This is what should happen:

    -Press staff button ----- 4 persons should be generated and should be visible.

    • when i click on one of them i should hire them.
    • When i start a job in the game i should be able to choose from the people i hired, more than can be selected.
    • When i start the job with the selected persons, i should be able to read the stats: skills, popularity, costs. These stats wil influance the job quality.
    • When i go to my office I see the staff i have hired and am able to fire them.

    Does anyone know how to do this or did someone do this before?

    Any help is more than welcome.

    Thanks in advance!

    Daan

  • >

    > > There are a few tutorials in the tutorial section on connecting to mysql database and php.

    > > If memory serves me correct - one was username password connect and other multiplayer.

    > >

    >

    > ok i will take a look again!

    >

    Multiplayer Tut

    And login

    enough info in both to achieve what you want.

    thanks for the links!

  • There are a few tutorials in the tutorial section on connecting to mysql database and php.

    If memory serves me correct - one was username password connect and other multiplayer.

    ok i will take a look again!

  • With the ajax object, you can communicate with a server, and so write znd read from a database

    How exactly is however outside my knowledge

    ok. Yeah i found some stuff about microsoft azure, but i have no clue how to make accounts and save the data. Couldn't find a tutorial or manuel about it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No one?

  • Hi guys,

    Making a game for my website. I want players to be able to make an account, login, play the game and save it to their account. So they can access their game progress on different pc's and continue. Is this possible with construct 2?

    Thanks!

  • You should look at the sine behaviour:

    https://www.scirra.com/manual/103/sine

    Thanks for the input. Never used that before. How should i use it to make to same bouncing behaviour as in my example?

  • Try this example with bullet behavior "Low fps" :

    thanks for your help, but it is not working for me. With the bullet behaviour the ball bounces doesn't bounce in a steady pace. If you watch like 40secconds the ball actually is hardly bouncing but is going over the ground.

    I guess there is no solution.....I don't get why simulate right/left in platform behaviour costs so much collisions checks...

  • I do not understand exactly what you want to do. placed an image illustrative.

    The ball is an enemy that goes from left to right, and back. He must jump like i did before, so his jumping heigt and his speed should remain the same. So it should jump the 50th seccond the same way as the first seccond. It should stay move between the two walls. So actually everything should stay the same, only it should i want to lower the collision checks.

  • Try this.

    the cap file fix:

    https://www.dropbox.com/s/e92tfy9e5y105 ... 20Fix.capx

    Thanks for your input,

    I tried that one before, but the problem is that they don't bounce synchrone. As soon as the ball hits the wall it starts to bounce random. I need to be able to walk underneath it. The balls should stay the same jump height and at the same pace, so almost precise as my current ball. However i found out that it is the platform simulate key, that causes all the collision checks.

  • Anyone??

  • Adding Trigger once condition in the 5-6 sup events, will help you but not much.

    have you tried to change the behavior, maybe it's from the platform behavior.

    Hi, thanks for the reply

    I tried chancing the behaviour by getting rid of the the instance variable action and replacing it in the event by a mirrored or not. No change.

    But I have no clue how i can get rid of the platform behaviour and get the same results. With a bullet it keeps spinning.

  • Hi guys,

    I made this bouncing behaviour for a ball (see capx). The problem is that it checks for a lot of collisions, on average 1.200 per ball at least. In my game I sometimes have up to 15 balls on screen, so my collision checks (in debugging) are between 15.000 and 25.000. How do I lower these, because my game crashes.

    I tried:

    1 make collision check sub event, real event is when ball is below x

    2 make collision check sub event, real event is when ground i in line of sight.

    Both didn't have a big impact, I only could lower the collision checks with 100-200 per ball, so there still are at least 1.000 checks per ball.

    Help is appreciated!

    Thanks,

    Daan

  • >

    > thanks for your help!

    >

    > But if it is playable on a galaxy s3, than it should definitely be playable on a nexus 5. The strange thing is on my galaxy tab 2 10.1 it runs on about 50fps, no lag, after i played a couple of seconds...in the start it is about 30fps, it is playable with a minor lag. On my nexus 5 i never had a lag...

    >

    That's playable only because i just make 300 static sprites with "If sprite is overlapping sprite" event, if i make them move, i'm sure the game will crash.

    > OH and i played like a level over and over again. After 7 times the game crashed....but that was with only 2 enemies. Before i played with 12 enemies.....

    > And i know that with every enemy the collision checks goes up significant, so I think the collisions aren't the problem, because the crashes when they are low but when they are high it doesn't......Hate my problem. I will compile with intel xdk now and accept maybe that one doesn't give the problem.

    >

    Well i'm not saying that you got crash only because of 21000 collision checks, i can't say surely what causing this, because i don't see a capx. I just want to say that with so much collision checks your game will be playable only on powerful devices like your nexus 5, and will give poor fps on devices like my s3

    hmm...but your galaxys s3 is way more powerfull than my galaxy tab 2 10.1......Still i keep getting between 50 to 60 fps.....Clueless about the problem

    But thanks for your input!

  • a