mirror of
https://github.com/Steffo99/stack.git
synced 2024-11-22 07:54:20 +00:00
Modifiche ai muri.
This commit is contained in:
parent
c2cd329e3f
commit
586c2c8f3a
4 changed files with 18 additions and 54 deletions
|
@ -222,7 +222,7 @@
|
||||||
<option_use_new_audio>True</option_use_new_audio>
|
<option_use_new_audio>True</option_use_new_audio>
|
||||||
<option_variableerrors>False</option_variableerrors>
|
<option_variableerrors>False</option_variableerrors>
|
||||||
<option_version>Alpha</option_version>
|
<option_version>Alpha</option_version>
|
||||||
<option_version_build>2</option_version_build>
|
<option_version_build>3</option_version_build>
|
||||||
<option_version_company>Royal Games</option_version_company>
|
<option_version_company>Royal Games</option_version_company>
|
||||||
<option_version_copyright>lolno</option_version_copyright>
|
<option_version_copyright>lolno</option_version_copyright>
|
||||||
<option_version_description></option_version_description>
|
<option_version_description></option_version_description>
|
||||||
|
|
|
@ -8,56 +8,6 @@
|
||||||
<parentName>o_generale</parentName>
|
<parentName>o_generale</parentName>
|
||||||
<maskName><undefined></maskName>
|
<maskName><undefined></maskName>
|
||||||
<events>
|
<events>
|
||||||
<event eventtype="3" enumb="1">
|
|
||||||
<action>
|
|
||||||
<libid>1</libid>
|
|
||||||
<id>410</id>
|
|
||||||
<kind>0</kind>
|
|
||||||
<userelative>0</userelative>
|
|
||||||
<isquestion>-1</isquestion>
|
|
||||||
<useapplyto>-1</useapplyto>
|
|
||||||
<exetype>1</exetype>
|
|
||||||
<functionname>action_if_aligned</functionname>
|
|
||||||
<codestring></codestring>
|
|
||||||
<whoName>self</whoName>
|
|
||||||
<relative>0</relative>
|
|
||||||
<isnot>-1</isnot>
|
|
||||||
<arguments>
|
|
||||||
<argument>
|
|
||||||
<kind>0</kind>
|
|
||||||
<string>32</string>
|
|
||||||
</argument>
|
|
||||||
<argument>
|
|
||||||
<kind>0</kind>
|
|
||||||
<string>32</string>
|
|
||||||
</argument>
|
|
||||||
</arguments>
|
|
||||||
</action>
|
|
||||||
<action>
|
|
||||||
<libid>1</libid>
|
|
||||||
<id>117</id>
|
|
||||||
<kind>0</kind>
|
|
||||||
<userelative>0</userelative>
|
|
||||||
<isquestion>0</isquestion>
|
|
||||||
<useapplyto>-1</useapplyto>
|
|
||||||
<exetype>1</exetype>
|
|
||||||
<functionname>action_snap</functionname>
|
|
||||||
<codestring></codestring>
|
|
||||||
<whoName>self</whoName>
|
|
||||||
<relative>0</relative>
|
|
||||||
<isnot>0</isnot>
|
|
||||||
<arguments>
|
|
||||||
<argument>
|
|
||||||
<kind>0</kind>
|
|
||||||
<string>32</string>
|
|
||||||
</argument>
|
|
||||||
<argument>
|
|
||||||
<kind>0</kind>
|
|
||||||
<string>32</string>
|
|
||||||
</argument>
|
|
||||||
</arguments>
|
|
||||||
</action>
|
|
||||||
</event>
|
|
||||||
<event eventtype="8" enumb="0">
|
<event eventtype="8" enumb="0">
|
||||||
<action>
|
<action>
|
||||||
<libid>1</libid>
|
<libid>1</libid>
|
||||||
|
@ -148,7 +98,7 @@ physics_draw_debug();
|
||||||
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
||||||
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
|
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
|
||||||
<PhysicsObjectFriction>0.5</PhysicsObjectFriction>
|
<PhysicsObjectFriction>0.5</PhysicsObjectFriction>
|
||||||
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
|
<PhysicsObjectAwake>0</PhysicsObjectAwake>
|
||||||
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
|
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
|
||||||
<PhysicsShapePoints>
|
<PhysicsShapePoints>
|
||||||
<point>0,0</point>
|
<point>0,0</point>
|
||||||
|
|
|
@ -298,7 +298,14 @@
|
||||||
<argument>
|
<argument>
|
||||||
<kind>1</kind>
|
<kind>1</kind>
|
||||||
<string>//Fai spawnare l'oggetto selezionato in base all'array stack_names.
|
<string>//Fai spawnare l'oggetto selezionato in base all'array stack_names.
|
||||||
instance_create(mouse_x,mouse_y,stack_names[selected]);
|
if (selected = 10)
|
||||||
|
{
|
||||||
|
instance_create(floor((mouse_x div 32))*32,floor((mouse_y div 32))*32,stack_names[selected]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
instance_create(mouse_x,mouse_y,stack_names[selected]);
|
||||||
|
}
|
||||||
</string>
|
</string>
|
||||||
</argument>
|
</argument>
|
||||||
</arguments>
|
</arguments>
|
||||||
|
|
|
@ -1 +1,8 @@
|
||||||
draw_sprite_ext(object_get_sprite(stack_names[selected]), 0, mouse_x, mouse_y, 1, 1, 0, c_white, 0.4);
|
if (selected = 10)
|
||||||
|
{
|
||||||
|
draw_sprite_ext(object_get_sprite(stack_names[selected]), 0, floor((mouse_x div 32))*32,floor((mouse_y div 32))*32, 1, 1, 0, c_white, 0.4);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
draw_sprite_ext(object_get_sprite(stack_names[selected]), 0, mouse_x, mouse_y, 1, 1, 0, c_white, 0.4);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue