frcol's Recent Forum Activity

  • Studying the AJAX plugin as refence, i found "lastData" in 3 situations:

    Code 1

    pluginProto.Instance = function(type)
    	{	
           ...
    		this.lastData = "";[/code:3l7lvv5y]
    
    Code 2
    [code:3l7lvv5y]
    var theInstance = null;
    
    window["C2_AJAX_DCSide"] = function (event_, tag_, param_)
    	{
             ...
    			theInstance.lastData = param_;
    	}
    
    instanceProto.onCreate = function()
    	{
    		theInstance = this;
    	};
    [/code:3l7lvv5y]
    
    Code 3
    [code:3l7lvv5y]
    var self = this;
    
    var errorFunc = function ()
    		{
        self.lastData = data.replace(/\r\n/g, "\n")[/code:3l7lvv5y]
    
    Code 4
    [code:3l7lvv5y]Exps.prototype.LastData = function (ret)
    	{
    		ret.set_string(this.lastData);
    	};[/code:3l7lvv5y]
    
    The first 2 codes I think it´s talking about the "Instances" propertie (between the 3 Classes: Plugin, type and Intance).
    
    Why in code 3 is using "self" ?
    
    In code 4 the "this.lastData" refers to the instace too?
  • Great rexrainbow!

  • Hi rexrainbow,

    Do you think the plugin could:

    • hide control bar (user cannot play, stop, go forward by controls)
    • detect if link is broke
  • Is there a better way to get json content inside a plugin that works when exported or is common to use JSON.parse(request.responseText)?

  • One solution is to put all numbers assigned in a array and each time you random a new number, you verify if it exists in the array yet, if not, put it in the array.

  • luizgama, great game!!

  • Hi planetserve, there is something called "Flow theory" https://en.wikipedia.org/wiki/Flow_(psychology). Take a look at the game section: balance of skill and challenge.

    Sometimes, if the game is to hard in the initial stage, the player does not have chance to get skills to play it and they can go away too soon. It´s not really a rule

    But it´s cool!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Am I doing something wrong?

    In preview it works, but when export, the json contents it´s not showed in the line marked below.

    Acts.prototype.LoadAddress = function (zipcode){
          var request = new XMLHttpRequest();
    		request.open('GET', '//viacep.com.br/ws/'+zipcode+'/json/', true);
    
    		request.onload = function() {
    			cr.logexport(request.status); // 200
    			if (request.status >= 200 && request.status < 400) {
    				cr.logexport(request.responseText); // show json content
    				this.dataJson = JSON.parse(request.responseText);
    		----> cr.logexport(this.dataJson.logradouro); // undefined when exported[/code:1yldme68]
    
    Demo: [url]http://kiduca.com/frc/zipcodePlugin/[/url]
    When click in "Find address", the form should be loaded with the address from zip code.
  • Is there another way that user can enter text besides HTML-element?

    Into Canvas?

  • Did you try this?

  • No, I don´t have 120hz monitor.

    I think that the hz of the monitor does not change the gameplay.

  • j0schi,

    beautiful graphics. Nice concepts.

    I thought the spaceship controls hard to master. Maybe you could let it easier.

    It can demotivate in the initial levels.

frcol's avatar

frcol

Member since 10 Dec, 2014

None one is following frcol yet!

Connect with frcol

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies