Noncentz705's Forum Posts

  • Try the distance expression.

    System ; Compare two values;

    distance(ball.X,ball.Y,hole.X,hole.Y)< 20 ;

         Do something ;

  • Is there an easy way to wrap an object to another object?

    The wrap behavior only supports wrapping to the layout or viewport.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yep<img src="smileys/smiley2.gif" border="0" align="middle" /> but I would suggest giving users a choice on whether or not to run the app on startup. What I've done here is opened components.iss in the examples folder and modified it slightly; I've highlighted any changes... hope it helps.

    [Setup]

    <font color="blue">PrivilegesRequired=admin</font>

    AppName=My Program

    AppVersion=1.5

    DefaultDirName={pf}\My Program

    DefaultGroupName=My Program

    UninstallDisplayIcon={app}\MyProg.exe

    OutputDir=userdocs:Inno Setup Examples Output

    [Types]

    Name: "full"; Description: "Full installation"

    Name: "compact"; Description: "Compact installation"

    Name: "custom"; Description: "Custom installation"; Flags: iscustom

    [Components]

    Name: "program"; Description: "Program Files"; Types: full compact custom; Flags: fixed

    Name: <font color="blue">"autorun"</font>; Description: "Help File"; Types: full

    Name: "readme"; Description: "Readme File"; Types: full

    Name: "readme\en"; Description: "English"; Flags: exclusive

    Name: "readme\de"; Description: "German"; Flags: exclusive

    [Files]

    Source: "MyProg.exe"; DestDir: "{app}"; Components: program

    Source: "MyProg.chm"; DestDir: "{app}"; Components: <font color="blue">program</font>

    Source: "Readme.txt"; DestDir: "{app}"; Components: readme\en; Flags: isreadme

    Source: "Readme-German.txt"; DestName: "Liesmich.txt"; DestDir: "{app}"; Components: readme\de; Flags: isreadme

    [Icons]

    Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"

    [Registry]<font color="blue">

    Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "MyProg"; ValueData: """{app}\MyProg.exe"""; Components: autorun; Flags: uninsdeletevalue</font>

  • Download Inno Setup innosetup.com

    Use the 'Script Wizard' to generate your script,

    at the end when it asks you if you would like to compile it now choose no.

    For starting on login ;

    stackoverflow.com/questions/7490249/inno-setup-how-can-i-make-my-program-run-when-a-user-logs-in-to-windows

  • If you want it here's a quick capx example :

    dl.dropboxusercontent.com/u/139218609/examples/weather.capx

    There's a lot more information returned from the request then what i choose to list, chance of precipitation, wind speeds...

  • Got the weather working yesterday ; Start by signing up at api.wunderground.com

    "var div = document.createElement('div');div.id = 'weather';document.body.appendChild(div)"

    ("var uR = "&"'"&Build_string&"';"&";

    jQuery(document).ready(function($) { $.ajax({ url : uR, dataType : 'jsonp', success :

    function(parsed_json) {

    var country = parsed_json['location']['country_name']; //Country Name

    var state = parsed_json['location']['state']; // Abbreviated State for example IA

    var location = parsed_json['location']['city']; //City Name

    var zip = parsed_json['location']['zip']; //Zip code

    var lat = parsed_json['location']['lat']; //Latitude

    var lon = parsed_json['location']['lon']; //Longitude

    var temp_f = parsed_json['current_observation']['temp_f']; // Temp in F

    var temp_c = parsed_json['current_observation']['temp_c']; // Temp in C

    var ob_url = parsed_json['current_observation']['ob_url']; // Full URL

    var ico = parsed_json['current_observation']['icon']; // Icon name

    var div = document.getElementById('weather');

    div.innerHTML = ico+';'+ob_url+';'+country+';'+state+';'+location+';'+temp_f+';'+temp_c+';'+zip+';'+lat+';'+lon+';';

    }})})")

  • Easiest way to do it, this assumes the cinematics aren't created procedurally.

    Create objects :

    1. Player : add 8 direction behavior

    2. Cinematic

                Leave the default animation empty.

                Create a new animation with the frames for your cutscene.

                Set image point top right, apply to all animations

                Set position 0,0

                Set size 640,480.

    3. Npc : add instance variables Cinematic, and StartSeconds

                Cinematic is the animation name you want to play (step2)

                StartSeconds is point in time to start audio from

    Create new layer : set parallax 0,0 move Cinematic to this layer.

    Event sheet

    On touched Npc

    Player is overlapping Npc

          Cinematic set animation : Npc.Cinematic

          Audio Play AudioAll tag "Music"

          Audio seek tag Music npc.StartSeconds

    Cinematic on any finished

          Cinematic set animation : default

          Audio stop tag "Music"