TunnelRhino
Member
My name is Jason and I am new here.
This thread is for people who wish to speed up coding time by copying, editing, pasting, using etc. permissioned to copy, edit, paste, use etc. codings.
Post coding and explain what it or they or both do here.
I shall go first
Create Event:
^Sets variables to chosen values.
Step Event:
^ If X button is pressed (pushed) down go to starting x position and starting y position
if up arrow button is being held down go up by two pixels
if right arrow button is being held down go right by two pixels
if left arrow button is being held down go left by two pixels
if down arrow button is being held down go down by two pixels
if one or more Healing_Rose exists in room the if colliding at all with a Healing_Rose
then if variable increase_hp_1A is equal to by_this_many_times_1A then variable
j is equal to j
otherwise if variable increase_hp_1A is not equal to by_this_many_times_1A then
variable hp gets increase by 1 and variable increase_hp_1A gets increased by 1
but if not colliding at all with a Healing_Rose then variable
increase_hp_1A equals to 0
This thread is for people who wish to speed up coding time by copying, editing, pasting, using etc. permissioned to copy, edit, paste, use etc. codings.
Post coding and explain what it or they or both do here.
I shall go first
Create Event:
Code:
increase_hp_1A = 0;
by_this_many_times_1A = 17;
j = 116;
hp = 115;
Step Event:
Code:
if (keyboard_check_pressed(ord("X")))
{
x = xstart;
y = ystart;
}
if (keyboard_check(vk_up))
{
y -= 2;
}
if (keyboard_check(vk_right))
{
x += 2;
}
if (keyboard_check(vk_left))
{
x -= 2;
}
if (keyboard_check(vk_down))
{
y += 2;
}
if (instance_exists(Healing_Rose))
{
if (place_meeting(x,y,Healing_Rose))
{
if (increase_hp_1A = by_this_many_times_1A)
{
j = j;
}
else if (increase_hp_1A != by_this_many_times_1A)
{
hp += 1;
increase_hp_1A += 1;
}
}
else if (!place_meeting(x,y,Healing_Rose)
{
increase_hp_1A = 0;
}
}
if up arrow button is being held down go up by two pixels
if right arrow button is being held down go right by two pixels
if left arrow button is being held down go left by two pixels
if down arrow button is being held down go down by two pixels
if one or more Healing_Rose exists in room the if colliding at all with a Healing_Rose
then if variable increase_hp_1A is equal to by_this_many_times_1A then variable
j is equal to j
otherwise if variable increase_hp_1A is not equal to by_this_many_times_1A then
variable hp gets increase by 1 and variable increase_hp_1A gets increased by 1
but if not colliding at all with a Healing_Rose then variable
increase_hp_1A equals to 0