Waltan's Recent Forum Activity

  • Every sprite has "Z-Index expression".

    If you want to check "corner to corner: you should check if their X, Y coordinates and width and height are the same.

  • Here is two sprites with same image:

    Exported project sprite sheet:

    You can check anything you want like that by exporting htlm5 website and go to "images" folder.

  • > Have you tried to change Fullscreen in browser to Scale inner?

    >

    One question more, do you know if c2 have a fuction with similar result to this:

    I can't say for sure, but try some of these actions in browser plugin, maybe it will help:

  • Have you tried to change Fullscreen in browser to Scale inner?

  • You should use Array, to contain data of levels scope.

    Then, you need variable, to get data from array (CurrentLevel)

    Formula of changing bar's (healthbar, manabar, expbar...) size is very simple:

    Width of your bar / Value you want to reach * Current Value

    So,

    Then, if value of your CurrentExp is greater or equal to scope, you need to make a little check:

    For example:

    Array:

    x1 = 240

    x2 = 580

    CurrentLevel = 1 (So the scope is 240)

    CurrentExp = 260

    It will:

    • check if CurrentExp > Array.at(CurrentLevel) (260 > 240)
    • set CurrentExp to CurrentExp - Attay.at(CurrentLevel) (260 - 240 = 20)
    • add 1 to CurrentLevel

    You will get level 2 and 20 exp with it

    I hope I have explained completely enough

  • That's what 'Request URL' does.

    Oh, that's right. Thanks alot.

  • For example, I have 100 levels in my game, and these levels are in .json files, attached to the project.

    If there is any way I can request these files with AJAX by name, not by choosing it from list?

    Like this:

  • bump

  • Keyboard object has no actions. How do I simulate action of some combination?

    I want to make automatic text saving to clipboard. If there is no way to just put text in clipboard ( discussed here ), then I want to try this trick:

    1. User presses "Save to clipboard" button

    2. System focuses on a hidden textbox

    3. System simulates "Ctrl + A" combinaion

    4. System simulates "Ctrl + C" combination

    Done!

    What do you think? If it possible to make?

  • Here's a working example.

    [attachment=0:16n1ji8c][/attachment:16n1ji8c]

    EDIT**

    [quote:16n1ji8c]Im kinda tired of this disability of C2. Title says "You can now make advanced games without writing a line of code." but it can't even load image for sprite as users want it to. It is obvious that if there is such feature people will want to use it as a way of loading DIFFERENT images for DIFFERENT sprites.

    Just noticed you said here Different Images for Different sprites. But in the image you posted you look like you are trying to loop through multiple instances of 1 sprite. My example is for loading the image for multiple instances of 1 sprite.

    So, the problem is in number of Animation Frames? If I have like 802 possible images, i should make 802 animation frames? If it possible to add new frames during the game?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have sprite with var called URL in it.

    Im creating some number of sprites using loop and set different URL values to every sprite.

    Then, I want to load image for every sprite using this URL var.

    But it doesnt work! Is there any way of making it possible?

    Im kinda tired of this disability of C2. Title says "You can now make advanced games without writing a line of code." but it can't even load image for sprite as users want it to. It is obvious that if there is such feature people will want to use it as a way of loading DIFFERENT images for DIFFERENT instances of same sprite.

  • It only works if you preview or export with node-webkit.

    It doesn't work in a preview!

    Then, if it works only in Node-Webkit export, why you advice me that? I pointed out that I need it to work in HTML5 application (in BROWSER)

Waltan's avatar

Waltan

Member since 5 Jul, 2011

None one is following Waltan yet!

Trophy Case

  • 13-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies