TheWyrm's Recent Forum Activity

  • Are you using VS2013?

  • You should be able to see it. Look at my example.

    <?xml version="1.0" encoding="utf-8" ?>

    <c2eventsheet>

    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->

    <name>Event sheet 1</name>

    <events>

    <variable constant="0" name="GlobalVar" sid="9714360519691366" static="0" type="number">0</variable>

    <event-block sid="7018329122331523">

    <conditions>

    <condition id="-2" name="On start of layout" sid="299500794865517" type="System" />

    </conditions>

    <actions>

    <action id="0" name="Set text" sid="7509042542778953" type="Text">

    <param id="0" name="Text">GlobalVar</param>

    </action>

    <action id="1" name="Set size" sid="4423238529848415" type="Array">

    <param id="0" name="Width">10</param>

    <param id="1" name="Height">1</param>

    <param id="2" name="Depth">1</param>

    </action>

    <action id="2" name="Set at X" sid="2044702159796748" type="Array">

    <param id="0" name="X">0</param>

    <param id="1" name="Value">"Question 1 text"</param>

    </action>

    <action id="2" name="Set at X" sid="3481080486553087" type="Array">

    <param id="0" name="X">1</param>

    <param id="1" name="Value">"Question 2 text"</param>

    </action>

    <action id="2" name="Set at X" sid="9166454218324226" type="Array">

    <param id="0" name="X">2</param>

    <param id="1" name="Value">"Question 3 text"</param>

    </action>

    <action id="2" name="Set at X" sid="2295161434386167" type="Array">

    <param id="0" name="X">3</param>

    <param id="1" name="Value">"Question 4 text"</param>

    </action>

    <action id="2" name="Set at X" sid="3591827090944929" type="Array">

    <param id="0" name="X">4</param>

    <param id="1" name="Value">"Question 5 text"</param>

    </action>

    <action id="2" name="Set at X" sid="3335473294898624" type="Array">

    <param id="0" name="X">5</param>

    <param id="1" name="Value">"Question 6 text"</param>

    </action>

    <action id="2" name="Set at X" sid="8324247311191332" type="Array">

    <param id="0" name="X">6</param>

    <param id="1" name="Value">"Question 7 text"</param>

    </action>

    <action id="2" name="Set at X" sid="9071752183104546" type="Array">

    <param id="0" name="X">7</param>

    <param id="1" name="Value">"Question 8 text"</param>

    </action>

    <action id="2" name="Set at X" sid="4933738152892325" type="Array">

    <param id="0" name="X">8</param>

    <param id="1" name="Value">"Question 9 text"</param>

    </action>

    <action id="2" name="Set at X" sid="7629973087529539" type="Array">

    <param id="0" name="X">9</param>

    <param id="1" name="Value">"Question 10 text"</param>

    </action>

    <action id="0" name="Set text" sid="8331962340760189" type="Text">

    <param id="0" name="Text">Array.At(floor(random(10)))</param>

    </action>

    </actions>

    </event-block>

    <event-block sid="8630094855078521">

    <conditions>

    <condition id="6" name="On object clicked" sid="4589826014420757" type="Mouse">

    <param id="0" name="Mouse button">0</param>

    <param id="1" name="Click type">0</param>

    <param id="2" name="Object clicked">Text</param>

    </condition>

    </conditions>

    <actions>

    <action id="0" name="Set text" sid="8245938615069997" type="Text">

    <param id="0" name="Text">Array.At(floor(random(10)))</param>

    </action>

    </actions>

    </event-block>

    </events>

    </c2eventsheet>

    As you can see my GV is called GlobalVar and is created at the top and then specified in a "set text" action.

  • If you're exporting as a mobile app then you can use cranberries 'Phonegap Powermanagement' plugin. If you are using a browser on a mobile device then you can't.

    P.S If I helped you then please return the favor and support me by liking me on facebook -> http://www.facebook.com/thewyrm

  • Just store the starting position and angle. Then do;

    ----------------------------------------------------------------------

    Every Tick:

    enemy: >Move forward 1.5 pixels towards starting position

    Set angle to starting angle.

    ----------------------------------------------------------------------

    Then do a comparison to see if the player's position and angle is equal to the starting values. At which point you tell the enemy to resume its original behavior.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So you have two ways of doing it.

    Either you make a sprite for each and every combination. if you have a lot of combination you will have to make a huge amount of sprites... which wouldn't be practical.

    The second is to create all the items separate sprites. In game you would need to save what items the player has selected. When player is loaded you will need to find out what items they have from the save file. Then pin each one to the player. However, you really need to think about how you do your animations when using this method.

  • So yes you could. However, it would be a huge undertaking and as it would be done in C2 it would be even more bloated.

  • You need to do some specific stuff. Follow this tutorial to get it working -> https://www.scirra.com/tutorials/1002/como-subir-t-juego-y-jugarlo-desde-dropbox

    P.S If I helped you then please return the favor and support me by liking me on facebook -> http://www.facebook.com/thewyrm

  • This is an awesome tool for beginner artists who want a consistent art style!

    I wonder... using your tool could you export a sprite and add it to the tool dynamically as a new object?

  • No problem and thanks. If you need help at any time just fire me a PM.

  • Not as such.

    You maybe able to do it a hacky way by doing a "Save as project...". Which saves it as multiple files. Close C2. Then opening the event sheet xml with a text editor. Do a search and replace. Save and open in C2.

    P.S If I helped you then please return the favor and support me by liking me on facebook -> http://www.facebook.com/thewyrm

  • I've not played trivia crack. However, what you asking is relatively simple.

    You would first need to create an array. On start up you set the size of the array, then set a question to each point of the array and then set text to a random point in the array.

    Then whenever you need a new question just again randomly select another point in the array.

    I have attached a very simple capx which does the above. A new question is generated each time you click the question text.

    I hope this helps!

  • So the bad news is when I released a windows 8 app the IAP and adverts wasn't functional. The good news is you can use cranberrygame's IAP and Ads plugins now -> https://www.scirra.com/forum/plugin-cordova-related-c2-plugins-crosswalk_t109586

    P.S If I helped you then please return the favor and like me on facebook -> http://www.facebook.com/thewyrm

TheWyrm's avatar

TheWyrm

Member since 9 May, 2014

None one is following TheWyrm yet!

Connect with TheWyrm

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies