vioz's Forum Posts

  • blackhornet're right, what I showed has a condition that is not necessary. it is preferable to use the condition of the frame directly.

  • You can't rotate a sprite or object on another axis , why you need that ? Paper mario clone :p ?

  • Look this example.

    We pass the snapshot in a variable and we can use anywhere.

  • I think it is because of the local .

    https://www.scirra.com/manual/107/ajax

    [quote:25gla5dw]Making AJAX requests cross-domain or in preview

    By default, browsers block AJAX requests across domains. This means, for example, a game on scirra.com can request other pages on scirra.com, but cannot request pages on facebook.com. This is an important security feature of web browsers (it is not specific to Construct 2 or its AJAX object).

    Also, when previewing in Construct 2 the game runs on localhost. This counts as a different domain to the rest of the internet, so typically AJAX requests to any web page will fail during preview, unless the server explicitly allows cross-domain requests.

    If you want AJAX requests to your server to work from any domain, or in preview, you can configure it to send the following HTTP header:

    Access-Control-Allow-Origin: *

    This will enable AJAX requests from any domain, but you should still be aware of the possible security implications of this. For more information on cross-domain requests see HTTP access control on MDN.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you try after export project ?

  • i think you need add "trigger once while true" in your event cause actually the event is repeated.

    timer < 0

    width < 0

    ======>

    start animation from beginning ( frame 0)

    start animation from beginning ( frame 0)

    start animation from beginning ( frame 0)

    start animation from beginning ( frame 0)

    ...

    timer < 0

    width < 0

    trigger once while true

    start animation from beginning ( frame 0)

    do you understand what i want say ?

  • Hey ,

    You need use container. Go in the properties of your sprite , look for "container" and add your text object.

    Now when you destroy your sprite , all objects in the container is destroyed too.

  • I do not understand that you can not get to.

    Trying do with it.

  • For all that is random, using random ()

    random(0,5)

    Give a number beetwen 0 & 5.

    Use round() or int() for get an integer number.

  • The only plugin that I know of:

    But it is not customizable graphically.

    I think it is best to do in construct, I make you an example.

  • Just change your "activo" variable type to BOOLEAN

    Now when you touch your sprite , the boolean "activo" switch between TRUE & FALSE.

    If Activo is true : set frame 1

    If Activo is false : set frame 0

  • I think this is what you seek ;

    Multiline Box

    https://www.scirra.com/forum/plugin-multiline-box_t66929?&hilit=multiline+box

  • are you talking about a mysql database? if this is the case, you can use the plugin : "ajax".

    See the screenshot.

    With ajax you request your php page on your website.

    In this php page you do the request on database (mysql for example) and the php page return the result.

    When ajax complete the request you can do what you want with the result where you want.

    You can do the same for post information in database , you just use POST instead of GET.

  • Thanks for this , in the past i have try make a word game and for fill array or dictionnary on big task , the game always freeze.

    It is really helpful for a lot of situations .

  • i hope CC survive and users support a long time , i have tested the both version.

    CC : awesome tools for creation of games & apps on windows.

    C2 : awesome tools for creation of web html5 games & apps in the futur , there are younger than CC but its future is bright with html5 which will soon be equipped sanitary all browsers.