Headbang Games's Forum Posts

  • on drop

    if sprite1 overlaps sprite2

    sprite1 set position to spirte2

    sprite1 set drag&drop disabled

  • I am not sure that's what you're referring to, but i had a problem with adding keys with global numbers as keys without stringing them first, they were just not added to dictionary.

    Do you see all the data in the dictionary UserSession in debug mode, before you're saving it?

  • so have two vars 'level' 'nextLevel', set level to the right level at the beginning of each level and then when you finish set 'nextLevel' to level+1

    or to be exact set it to max(nextLevel,level+1), so if you'll reach level 10 and go back to play level 1 it won't return to 2.

  • if your levels are linear, you can just add a var 'level' starting at 1 and add 1 to it when you finish a level.

    then save it to webstorage - add key="level" value=level.

    if not i recommend you add a dictionary instead of pre-adding all the levels as vars (may be a lot of them) and push a key to it every time you finish a level - add key="level"&level (value doesn't matter, if you want to keep an extra state of the level you can write it in the value, i usually write down another json in the value with all my data).

    then save this dictionary to json to webstorage.

  • cranberrygame Yes i did, the problem is in crosswalk, in chrome on android it works.

  • cranberrygame I tried construct's official usermedia plugin, it didn't work, do you have a phopnegap plugin for it or is there any work around i should do to make it work?

    I am talking about a crosswalk export, not web.

  • You can search object names

  • It would be nice to have a button for filtering the event list to show disabled events/actions and on the same subject it would also be nice that when you cancel a search construct will keep focus on the select event instead of jumping to the top.

  • cranberrygame

    Is there a way to stream the device camera straight to c2 canvas instead of opening the native ui, like with the usermedia plugin?

  • Is it possible to play a local audio file file:///C:/folder/filename ?

  • Yes, but never mind, using browser open url sms:1234254 works fine

  • cranberrygame i am using c2 r190 and nothing happens when i try to send a sms, i figure a send form should appear, do i need to revert to r185 for it to work?

    I am exporting with crosswalk beta, does it makes a difference?

  • cranberrygame Do i need to add any special permission for the sendSMS plugin to work with crosswalk?

  • I am pushing a small array with an extract base64 string of an image file (around 600kb), but i can't seem to get the progress of the upload to show.

    I added an event

    on ajax progress "tag"

    browser log ajax.progress

    this event is not even triggered.

    When using ajax request url, the progress shows up fine.

    I am posting the data with Content-Type application/json in the header instead of application/x-www-form-urlencoded

    Does it got anything to do with that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Any ideas why this effect breaks my project when exporting with crosswalk (black screen on startup)?