dop2000's Recent Forum Activity

  • Are your btnYes and btnNo objects of "Button" type? In this case don't use Touch events for them. Use btnYes -> On clicked event instead.

    If they are sprites, change events to Touch-> On touched object. "On touched" is a triggered event, it's triggered only once, which is what you normally want for menu buttons, toolbars, settings icons etc.

    "Is touching" is a continuous event, it's executed many times per second, while the finger is touching the object. You should use it for controls like a virtual joystick, firing button etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In Construct 3 there is a native plugin for that.

    In Construct 2 you can do this with User Media -> Start recording canvas. Although, I don't know if you can record only part of the screen.

    scirra.com/manual/144/user-media

    If you need a very short low-framerate video, you can also try to do this with Paster of Canvas addons. Paste objects or layers onto the canvas, then load this image from the canvas into a sprite, as a new frame. Repeat several times.

  • You are probably picking one enemy in this event. Try adding "System pick all". For example:

    Bullet on collision with Enemy
    	System pick all Enemy 
    		Enemy Flash...
    

    If this doesn't help, please post your code.

  • It would help if you could explain what kind of game you are trying to make and post your project.

  • NWjs.AppFolder should be automatically set to your apps folder.

    Just output it to a text object or browser console (Browser Log NWjs.AppFolder) to see which folder it refers to on your pc.

  • In my example there are two instance variables - TStick.a and TStick.d

    d is the distance from the center of thumbstick, and a is the angle (direction). It's up to you how you use them. For example, you can move your character with Bullet behavior, set speed to d and set angle of motion to a.

  • Ooh that sounds complicated! Is there any tutorial on it?

    It's a very common trick used in many games, and it helps to avoid lots of issues caused by changing player animations.

    There are lots of tutorials, here is the first one I found, read the first page:

    construct.net/en/tutorials/building-a-platform-game-a-beginners-guide-115

  • Yeah, you can save your project as a folder (not as capx), and then you will be able to modify json file while the game is running in preview on mobile. If you request the file with AJAX again, it will load the updated file contents.

    Don't add any path to the file name. Use AJAX Request URL action, URL="Mobile_Test.json"

  • You can compare X and Y. Say, Object.Y should be < than Target.BBoxTop, Object.X should be between Target.BBoxLeft and Target.BBoxRight.

  • tarek2 Path like "D:\..." will obviously not work on mobile. I guess, if you want to access the file from the local drive, you'll need to run some web or ftp server on your pc. Otherwise the easiest solution would be uploading it to the internet and requesting it with ajax.

    soviet shrek Try this:

    NWjs.ReadFile(NWjs.AppFolder & "test.json")

    In my case NWjs.AppFolder="C:\Program Files\NWjsForC2\win32\", so when I put test.json into that folder, it works.

  • Set s to NWJS.readFile("d:\temp\file.json")

    Or you can even load it directly into the array:

    Array load from JSON NWJS.readFile("d:\temp\file.json")

  • Didn't know about ReadFile expression, it's much easier than requesting files with AJAX. Thanks!

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies