BillAlex's Recent Forum Activity

  • Safe the coints in a globale variable

    If the number of coints changed check if the coints over 1.000.000

    Give the gamer the super coin

  • jeffige if you have the same window and layout size (your first post) you can't scrolling anything because there is nothing to scroll. You need a diffrent size for the layout ...

    To fix the problem with the black bars (I hope I have understood you correctly)

    https://www.scirra.com/tutorials/73/supporting-multiple-screen-sizes

    Configuration Settings:

    Fullscreen in browser -> Scale outer

    Events:

    Get the screen size --> calculate the scale to fill the hole screen --> set it to the image

    I hope this was your problem ...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • sorry my mistake ...

  • Hello Rik Marshall,

    in javascript (for HTML5 games) I think it is not possible. The enter-'event' is a function of the keyboard-program not a browser-function. But this cordova-PlugIn looks like your searched solution:

    https://www.npmjs.com/package/cordova-plugin-keyboard

    a work around would be to use textarea-tags ... with a replace of 'newlines'

    Or better: Your own virtual keyboard created with sprites

  • Hello joeb12

    I can't understand your problem. Simple example:

    https://www.dropbox.com/s/pyd6se1gssrtap0/template_drag_drop_sprite.capx?dl=0

    If it didn't work:

    -Behavior is disabled

    -skh@OddConfection to small polygon (if you don't set the polygon it is the whole sprite)

    -wrong event to drag the object ... (in simple way you do'n need an event)

    -touche event is not recognized (test it with a simple touch-event: clickObject -> write in Log "Object clicked'

    For more help we need your code ...

  • Domse65 Note:

    The first code from SimoneT is the better and a more performant way -> save the positions of the nr. 1 in a new Array.

    --> save the position in a 2d-array: first 'line' -> x-position in array secont-line -> y-position

    Because worst case:

    You have a large array but only 1 position for the right entry. It could take to a 'endless loop' because a random number be able occur multiple times.

    ... save the performance!

  • Or a 'bad' way:

    Make 2 Projects ...

    The first ask the user to rotate his device and hyperlink to the second project (the Game)

    Loaderscreen is ever the first layout!

    Why do not fixes the rotation in the project properties?

    Configuration Settings -> Orientations

    ...

  • Ohh ... I think I have misunderstood Ninjadoodle. He what to change the whole tilemap with a other, right?

    SimoneT: I don't see an action for 'set animation frame' for a tilemap-object. Or I'm wrong .... ?

    To change the whole tilemap only i can use 'load image from URL'. In this case I have handle the images from beginning over the file API to get the URL from the used image. Or I'm wrong again ... ?

  • Hello Ninjadoodle,

    You only want to switch two tills after 'click'?

    I have make a simple project for you ... https://www.dropbox.com/s/lq07ulqxfgvuo7h/template_switch_tillmap.capx?dl=0

    In my opinion I think a shorter way is to use sprites and compare/switch there frames ...

  • Hello oko4,

    this 'problem' is very simple to fix:

    1. write the new text in the text-object

    2. wait 0,1 second (is a system action)

    ... the Wait-action is required because the text must rendered to get the 'new' size

    3. text-object: set size to: width= Text.TextWidth + 10; height: Text.TextHeight + 10 (Text.TextHeight not Text.Height)

    ... if you don't add few pixels (in my code 10 pixels) it is possible that the objects height is not sufficient to display the second line

    I wanted to add a project file for testing, but i don't see a button for it. But I hope you can still fix your problem.

  • Thanks for your help!

    The problem is solved alone. I think it was a non-charged configuration of Apache. Sorry for my mistake!

  • Hello guys,

    I have a "little" problem with the html5 exporting.

    In the test area (server from Construct 2) the "game" works fine. But if I export the game and load it on my RaspberryPi Apache2 Server or WebMatrix (IIS) I have the problem that I can't access to any array contant! ???

    I have create a textbox to show the array contant. Works fine on test area but not on any servers.

    Yes, I'm a rookie in server configuration and so I haven't no idea to fix the proble. I have create on the apache a .htaccess file for MIME configuration but the problem still exists.

    Can you help me, please?

    Please tell me if you need other informations to help me.

    Software:

    Construct 2 219 (64-bit) Free Version

    (I hope my english is readable and understandable)

BillAlex's avatar

BillAlex

Member since 6 Jan, 2016

None one is following BillAlex yet!

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies