TunnelRhino
Member
Carl Step Event
Wall Step Event
I Jason want when Carl collides with Wall at x1 y1 to image_blend c_red please.
Code:
Information about object: Carl
Sprite: Carl_Spr
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Step Event:
execute code:
/*
I Jason am using for what I had for a super long time
Game Maker 7.0 Pro Edition
*/
if (!keyboard_check(vk_control))
{
if (keyboard_check(vk_up))
{
y -= 1;
}
if (keyboard_check(vk_right))
{
x += 1;
}
if (keyboard_check(vk_left))
{
x -= 1;
}
if (keyboard_check(vk_down))
{
y += 1;
}
}
else if (keyboard_check(vk_control))
{
if (keyboard_check_pressed(vk_down))
{
y += 1;
}
if (keyboard_check_pressed(vk_left))
{
x -= 1;
}
if (keyboard_check_pressed(vk_right))
{
x += 1;
}
if (keyboard_check_pressed(vk_up))
{
y -= 1;
}
}
if (keyboard_check_pressed(ord("J")))
{
x = xstart;
y = ystart;
}
if (instance_exists(Wall))
{
if (position_meeting(1,1,Wall))
{
image_blend = c_red;
}
}
Wall Step Event
Code:
Information about object: Wall
Sprite: Wall_Spr
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Step Event:
execute code:
/*
I Jason am using for what I had for a super long time
Game Maker 7.0 Pro Edition
*/
if (x != 1 && y != 1)
{
x = 1;
y = 1;
}
I Jason want when Carl collides with Wall at x1 y1 to image_blend c_red please.