Asmodean's Recent Forum Activity

  • [quote:32d9kj6l]Thank you! I'll send you the beta of my game, to check it out once I get it running.

    I'm looking forward to it.

  • Something like that?

    https://drive.google.com/open?id=0B5FlD ... WNRak9OZEE

    It's using particles, so be very cautious on mobil with the number of particles. It can be very CPU-Time consuming.

    Play with the properties of particles and see if it's what you are looking for.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're welcome.

    About the 'swirling circles effec'. Your video doesn't work, so I don't know what you exactly mean.

    Can you explain it a little further?

  • You have to distinguish between triggered events (the one with the green arrows) and non triggered. The triggered events will be triggered only once (hence the name), the other will be triggered every tick (60 times a second) the object is touched.

    In your capx, a new squares will be created as long you touch the object and destroyed only after the animation has ended. This means you see a big square because you see the next to last frame of a newly created square. You can see that you are create many squares in debug mode. If you start in debug mode you will see on the left side of the debug window that sprite 7 count up to 32 objects before the the first get destroyed.

    You can fix that with triggered events. I made an example. Hope that will help:

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

  • Try:

    Array| For each X element -> Array| Set value at Array.CurX to 'your number you want'

    Array| Current Value=5

    This is one event, with one action.

  • Try:

    NWjs | Run "start" for a CMD and

    NWjs | Run "start pathToBatFile" for a batch-file

    for example:

    NWjs | Run "start c:\mybat\batch.bat"

  • My first completed game. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Your task is to eliminate all robots in a level by deactivating their RGB components. To deactivate a component, shoot

    at the robot with a missile that has the colour you want to deactivate.

    https://www.scirra.com/arcade/action-games/rgb-10803

  • Problem Description

    If NWjs.AppFolder is called in a NWjs-App in Linux it gives the wrong path. It puts chrome-extension:// with an ChromeApp-Id in front of the path. It works fine with Windows.

    Attach a Capx

    Capx with two externels files:

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

    NWjs-win32:

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

    NWjs-linux64:

    https://drive.google.com/file/d/0B5FlDY ... sp=sharing

    Description of Capx

    The Capx displays the NWjs.AppFolder path in a Textbox. Where the path will be shown correct on all Systems. Then it tries to load a picture in a sprite from an external file and a text-file with the ajax-plugin.

    If ajax loaded successful it will write an O.K, otherwise Error

    Steps to Reproduce Bug

    • Make a Linux64 NWjs-App from the Capx.
    • Copy the to files: pic2.jpg and test.txt in the linux64 folder
    • Make nw executable an start it.
    • Press F12 to open the Debug-Window, click on the console Tab to see the wrong path.

    Observed Result

    The Textbox displays the correct path, but no image is loaded and ajax reported an error.

    Expected Result

    Correct path.

    Affected System/b]

    • Windows 7: (NO)
    • Linux Mint 64 Bit: (YES)

    Operating System and Service Pack

    Windows 7 SP 1

    Linux Mint 64 Bit

    Construct 2 Version ID

    r233 and nwjs 0.16

  • I forgot to write that for both files the .desktop and the program you have to set the permissions:

    sudo chmod 777 'name of file'

    RBuster

    There is a standard path for the .desktop: /usr/share/applications. Where to put the program is up to you, mostly in usr/bin or bin. There are some sort of installer for that, but I think is not easy at all. You could make a debian apt package for example. There are tutorials for that. And there is ZeroInstall for portable apps http://0install.net/.

    I've never done this so I cant really help you.

  • But I still have problems:

    - I'm using a xml to load images, text and a sound file that I 've imported to the Project Files and that are in the folder's root with the "nw" file. When I click to load one of these assets, nothing happens.

    If it works in Windows maybe the path setting is wrong in Linux. Linux needs a leading '/'. But im not really into XML on Construct. Maybe there is someone more advanced with loading files in Linux. It seems vikuserro has the same problem .

    [quote:2o0j2ujs]

    • I really need that the "nw" file can be executed through the file manager. Now the application opens only through the terminal.

    For that you need a .desktop file.

    Make a textfile with the exact name of your program and the suffix desktop, like when your program is called myApp a myApp.desktop. Now copy this in a text-file:

    [Desktop Entry]Type=Application
    
    # The version of the desktop entry specification to which this file complies
    Version=1.0
    
    # The name of the application
    Name=
    
    # A comment which can/will be used as a tooltip
    Comment=
    
    # The path to the folder in which the executable is run
    Path=
    
    # The executable of the application.
    Exec=
    
    # The name of the icon that will be used to display this entry
    Icon=
    
    # Describes whether this application needs to be run in a terminal or not
    Terminal=false
    
    [/code:2o0j2ujs]
    
    Only mandatory is Type, Name, Exec. You can choose any name you want, in path and Exec you need the exact path to your program. 
    If the program is in /home/me/Documents/linux64 and called myApp.
    You have to set it to:
    Path=/home/me/Documents/linux64
    Exec=/home/me/Documents/linux64/myApp
    
    The same is with icon. If you want an icon you can use a png, svg, ico, icns. Put it in folder with your program and set the path to. 
    Icon=/home/me/Documents/linux64/MyIcon.ico
    
    You don't need to have all files in one folder.  You can put the .desktop file above all other files, you have only customize the path and exec. 
    
    An example:
    [code:2o0j2ujs]
    [Desktop Entry]
    Type=Application
    Name=My App
    Icon=/home/me/Dokumente/linux64/MyAppFolder/MyAppIcon.ico
    Path=/home/me/Dokumente/linux64/MyAppFolder
    Exec=/home/me/Dokumente/linux64/MyAppFolder/nw
    [/code:2o0j2ujs]
    
    All files are in the folder MyAppFolder, in the folder linux64 above is only the nw.desktop file. 
    
    I hope that will help, please ask if something is unclear.
  • Sorry RBuster I saw your post only now. Does it work now, or do you still need help?

  • Thanks for your feedback. I will test it today on a classroom. I will see if the arragement of the area is ok.

    That will be the best idea, maybe it's only me.

    [quote:1nu1j07k]

    But for the challanging I'm agree with you. That's why I wrote that's a beta version. It's just 2 hours of work.

    For two hours work it's really good.

    If it should be more like a game I would do levels. Maybe in the first levels only whole sums and a level consist of only a few runs after another. Higher levels all kind of sums more runs. Maybe a time limit in higher levels? Bonus for the lowest numbers of notes and coins as change? Some kind of achievements like stars or medals? A High-score list could be something very motivating.

Asmodean's avatar

Asmodean

Member since 31 Jul, 2015

Twitter
Asmodean has 9 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies