ranma's Forum Posts

  • but it will appear in vertical center even if you go right on top of previous layout.

    the more complex solution is to store your hero's y position in a global value and make something like this:

    player.x > LayoutWidth - 20
         set global value lastPlayerY to player.y
         go to layout "lay2"

    and in the lay2 layout you should have:

    on start of layout
         set player.Y to global value lastPlayerY
         set player.X to 20
  • p.s. reason I'm exporting for testing purposes is because I use AJAX which needs te be executed from my testserver.

    ajax should work just fine in preview mode if you send a Access-Control-Allow-Origin: * header with your server file. maybe that will help.

  • no problem, have fun!

  • also Ashley maybe you should make this kind of carsting automatic? if a global / local variable is of type number, cast every string to float automatically? or check if you are trying to set it to string in an event?

  • <img src="http://img11.imageshack.us/img11/9278/screenkbi.jpg" border="0" />

  • event 2: set score to int(WebStorage....)

    webstorage stores all values as string, so if you get a value from it to a number type local variable, you should cast it to int.

  • c2 importer seems to have a problem with small files, add a little bit of silence at the end (probably up to a second time total wav length) and it should be ok.

  • nananananan Batman! :)

    Also, NaN occurs when you try to add strings to numbers, you probably have two variables - one is text one is number and you add them using & or +

    Cast them properly - if you use & make a string(variable); if you use + make a int(variable) or float(variable)

    and as Ashley said, without events we probably won't be able to help you more here :(

  • this might be connected to the file locking bug, when you import multiple frames, c2 locks the files on disk.

  • there is no such thing as a "mouse.-x" ?

    try using 0-mouse.x if it is what you are trying to achieve :)

  • just happened to me. this time, opening project and closing it didn't fix this. also, I opened a project, made a change, clicked the closing "X", it asked me to save changes, I clicked "save" - project was saved, closed, but construct is still open :(

  • Got some info on a previous, closed bug report.

    Image files are still locked when I use the "import frames" feature. When importing single image or sprite strip - files are not locked, only when "import frames" is used.

    hope that helps.

  • I also stumbled upon this one. I discovered that if you load up last open project and then close C2 it closes properly.

    Don't know what causes hickups though, seems like it's random.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • it's fixed when importing single frames from image editor window, but when using import frames from animation frames editor, construct locks image. not sure if import sprite strip also locks up image files.

  • You will not need to use a power-of-two texture after r100 is released. The power-of-two texture limitation only applies to tiled background, and the bug was Sprite accidentally set the texture to be tiled.

    yes I got that, but since r100 is not yet released, the power of two solution works :)