PapitoMyKing's Forum Posts

  • Hi,

    So I have the player set to mouse.x and mouse.y, and when he touches the walls, 1 life should be lost and the game should restart.

    What is happening, is that the game is subtracting all 5 lifes at once. I've tried to set up a variable, destroy the player sprite, the "trigger once when true" event, set up a function, so the game doesn't count more than once the collision. I think the game is counting a collsion per tick, therefore all the lifes are being lost.

    Game file:

    https://dl.dropboxusercontent.com/u/200 ... issue.capx

    (lvl1 layout, lvlsheet, line 11)

    Thanks!

  • I made it work using yahoo mail.

    Now, is there a way for it not to be put in the spam folder???

  • Did everything in the tutorial, not working for me

  • Bump

  • Hi,

    So I'm making an online multiplayer game. I know that if I want it to be server based, and not host2peer, I have to open a web browser in a server, and open the web address of the game, so the server is the host.

    I made an account in amazon aws, managed to create a linux server instance (EC2), connected to it, and then it opens the console and I go blank

    Do somebody knows what to do from there? What do I type in the console?

    Thanks!!!

    Sad times.

    So, we have to pay hosting to show our games.

    Can we get rolling a feature request, for the option to make private the games we publish at the arcade? Do you guys have a dropbox alternative in mind?

  • You can fix it by putting the tiniest of waits in between visible and focused, like 0.1 seconds.

    A million thanks! It works now.

  • Hi!,

    So I'm modifying scirra's online multiplayer example, and I've hit a bump.

    I want to make it so that when you press enter, the chat text box appears and gets focused. I don't want it visible all the time. I added the event "when press enter -> focus", but when I press enter it only changes to visible, and I have to click it to focus it.

    Any help is appreciated. Line 75.

    https://dl.dropboxusercontent.com/u/200 ... layer.capx

    Thanks!

  • Text Object can look and behave differently on different devices/browsers because it's generated. To keep it consistent you should use SpriteFont object. Actually I don't know any example where you should use a Text object except some debugging. Text object can also affect your project performance.

    I see. Thank you very much for the reply!

  • Hi,

    So, the text object position changes from chrome to firefox. This is giving me a huge headache. I'm using the text object to display numbers, and I don't want to have to make 100 sprites so it looks good in every browser. Please help.

    Thanks!

  • Thanks guys for the replies!

  • Hi,

    Would it be possible to make a ROTMG clone with construct 2? Anybody has an idea?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I cant download it.. I have a low connection.

    But you can put system-Every tick l spawnplanes set position to sprite.x and .y or

    `` l spawn planes set position to object sprite at image point ..

    It's not working...

  • Hi,

    So, the pin behaviour is not being pinned... just look for yourself:

    https://dl.dropboxusercontent.com/u/200 ... oblem.capx

    I create a new plane with the "spawnPlanes" function (line 14), but the arows are not following the plane, even though they are pinned <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    Thanks for your help guys.

  • Wait will not pauze the tick. It just postpones the actions in time, the events that follow just continue to run.

    "Wait 0 seconds" is SPECIAL, it postpones the following actions until the end of the event sheet.

    There is a wait before the function call. So the system sets the function call aside and runs some ticks. Then, when the wait (0.2 seconds) is over, it calls the function. There is no way to know exactly at what point the tick is now in the events.

    So, the function gets called, denominator gets a new value. And it this point, due the first wait call, the events have been on the end of the tick. So mostly num1, num2 and result get a value.

    I think the while loop can try like 4 or 5 times, then it all get caught up. If it dont guess more then 4/5 times it will probaly work, it has been a some times at the end of the events during the wait before the function call. But after that, the event ticker is caught up in the while loop, because it runs that while loop. And when the 'result' is illegal, it can be bigger then any denominator can be. But now, the event sheet wil not be at the end anymore, the moment where the waits postponed the actions. So, denominator gets a new value, but num1,num2 and result will never again get a new value. So the while keeps gooing. And thats a endless loop = a non responsive game. Or as you say = a crash.

    Solution = Do not use 'waits', use timers.

    The waits in the function are totaly not needed.

    edit, they gave you that solution allready, i see.

    restart the browser, it will work

    Thanks for the explanation. I took out every "wait" and it's working now!