1
Fork 0
mirror of https://github.com/Steffo99/stack.git synced 2024-11-22 16:04:19 +00:00

Bugfix. Aggiunto TotalItems.

Sistemato il bug in cui venivano creati oggetti inesistenti, #10.
This commit is contained in:
Steffo 2013-06-30 16:04:44 +03:00
parent 7fa55d2d4c
commit a77a1d6730
2 changed files with 137 additions and 1 deletions

View file

@ -773,6 +773,34 @@ instance_create(mouse_x,mouse_y,stack_names[selected]);
</action> </action>
</event> </event>
<event eventtype="9" enumb="39"> <event eventtype="9" enumb="39">
<action>
<libid>1</libid>
<id>612</id>
<kind>0</kind>
<userelative>0</userelative>
<isquestion>-1</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_if_variable</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>selected</string>
</argument>
<argument>
<kind>0</kind>
<string>totalitems</string>
</argument>
<argument>
<kind>4</kind>
<string>1</string>
</argument>
</arguments>
</action>
<action> <action>
<libid>1</libid> <libid>1</libid>
<id>611</id> <id>611</id>
@ -797,8 +825,74 @@ instance_create(mouse_x,mouse_y,stack_names[selected]);
</argument> </argument>
</arguments> </arguments>
</action> </action>
<action>
<libid>1</libid>
<id>421</id>
<kind>3</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>0</useapplyto>
<exetype>0</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
</action>
<action>
<libid>1</libid>
<id>611</id>
<kind>6</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>selected</string>
</argument>
<argument>
<kind>0</kind>
<string>0</string>
</argument>
</arguments>
</action>
</event> </event>
<event eventtype="9" enumb="37"> <event eventtype="9" enumb="37">
<action>
<libid>1</libid>
<id>612</id>
<kind>0</kind>
<userelative>0</userelative>
<isquestion>-1</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_if_variable</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>selected</string>
</argument>
<argument>
<kind>0</kind>
<string>0</string>
</argument>
<argument>
<kind>4</kind>
<string>2</string>
</argument>
</arguments>
</action>
<action> <action>
<libid>1</libid> <libid>1</libid>
<id>611</id> <id>611</id>
@ -823,6 +917,44 @@ instance_create(mouse_x,mouse_y,stack_names[selected]);
</argument> </argument>
</arguments> </arguments>
</action> </action>
<action>
<libid>1</libid>
<id>421</id>
<kind>3</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>0</useapplyto>
<exetype>0</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
</action>
<action>
<libid>1</libid>
<id>611</id>
<kind>6</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>selected</string>
</argument>
<argument>
<kind>0</kind>
<string>totalitems</string>
</argument>
</arguments>
</action>
</event> </event>
</events> </events>
<PhysicsObject>0</PhysicsObject> <PhysicsObject>0</PhysicsObject>

View file

@ -1,5 +1,7 @@
//Inizia selezionando la squadra. //Seleziona il primo oggetto.
selected = 0; selected = 0;
//Definisci qual è il numero massimo, ad esempio se arriva a stack_names[9] scrivi 9.
totalitems = 7;
//Questo è un array con tutti i nomi degli oggetti da fare spawnare. //Questo è un array con tutti i nomi degli oggetti da fare spawnare.
stack_names[0] = squadraL; stack_names[0] = squadraL;
stack_names[1] = gomma; stack_names[1] = gomma;
@ -18,3 +20,5 @@ spr_names[4] = libro_mate;
spr_names[5] = temper; spr_names[5] = temper;
spr_names[6] = bigball; spr_names[6] = bigball;
spr_names[7] = matitasp; spr_names[7] = matitasp;
//Disattiva il mouse normale visto che viene generato automaticamente.
window_set_cursor(cr_none);