Pixel Game Makers

Would you like to react to this message? Create an account in a few clicks or log in to continue.

The #1 source for all things Pixel Game Maker MV!


2 posters

    Trying to Create a Plug-In Template

    CutePoops
    CutePoops


    Posts : 8
    Join date : 2019-10-10
    Age : 36
    Location : California

    Trying to Create a Plug-In Template Empty Trying to Create a Plug-In Template

    Post by CutePoops Mon Oct 28, 2019 12:58 am

    I used one of the official plug-ins and cut everything that seemed to be unnecessary, only leaving the functions listed as being required, but the engine crashes when I try to test play. Anyone see where I went wrong?

    Code:

    (function(){
       
        var obj = {};
        obj.locale = null;

        obj.getInfo = function(category){
            if(category == 'name'){
                return "Template";
                }

            else if(category == 'description'){
                return "A simple plug-in template for beginners";
                }

            else if(category == 'author'){
                return "CutePoops";
                }
               
            console.log("getInfo");
        };

        obj.initialize = function(settings){
            console.log("initialize");
        };

        obj.finalize = function(){
            console.log("finalize");
        };

        obj.setLocale = function(_locale){
            obj.locale = _locale;
            console.log("setLocal");
        };

        obj.call = function(name, param1, param2){
            console.log("call");
        };


        obj.update = function(dt){
            console.log("update");
        };


        return obj;
    }());
    Tenkai Star (Admin)
    Tenkai Star (Admin)
    Secret Boss
    Secret Boss


    Posts : 7
    Join date : 2019-09-18
    Location : Atlanta, Georgia, USA

    Trying to Create a Plug-In Template Empty Re: Trying to Create a Plug-In Template

    Post by Tenkai Star (Admin) Wed Nov 27, 2019 8:20 am

    Hello. We are working on understanding the plug-ins. If you have any experience you can join us at:
    https://discord.gg/nncv82d
    CutePoops
    CutePoops


    Posts : 8
    Join date : 2019-10-10
    Age : 36
    Location : California

    Trying to Create a Plug-In Template Empty Re: Trying to Create a Plug-In Template

    Post by CutePoops Thu Dec 05, 2019 6:16 pm

    Tenkai Star (Admin) wrote:Hello.  We are working on understanding the plug-ins.  If you have any experience you can join us at:
    https://discord.gg/nncv82d

    Sweet, thank, I'll check it out. I'm very interested in trying my hand at plugin making.

    Sponsored content


    Trying to Create a Plug-In Template Empty Re: Trying to Create a Plug-In Template

    Post by Sponsored content


      Current date/time is Thu Mar 28, 2024 4:39 am