A
Alan Régis
Guest
I'm designing a RPG character sheet and right now what i have is a button that opens an image (the sheet itself) with its fields.
I have an object (obj_ficha) with this sprite:
I want to click the little circles in order to fill them, representing the points invested in character creation, so i have done this:
So, right now when i click the first circle, it is filled with black, representing the attribute força (strenght) 1. But when i click with the mouse right button, nothing happens (it should return the attribute força back to 0, erasing the circle...)
It's odd because even when i switch the buttons like this:
nothing happens... its like the right button is dead... i dont know what is wrong... can somebody help me, please?
I have an object (obj_ficha) with this sprite:
I want to click the little circles in order to fill them, representing the points invested in character creation, so i have done this:
Code:
// In Step Event
if point_in_circle(mouse_x, mouse_y, obj_ficha.x + 142, obj_ficha.y + 130, 8)
{
if !mouse_check_button(mb_right)
{
if mouse_check_button(mb_left)
{
forca = 1;
}
}
else
{
forca = 0;
}
}
Code:
// In Draw Event
if forca == 1
{
draw_circle(obj_ficha.x + 142, obj_ficha.y + 130, 8, false);
}
else
{
}
It's odd because even when i switch the buttons like this:
Code:
if point_in_circle(mouse_x, mouse_y, obj_ficha.x + 142, obj_ficha.y + 130, 8)
{
if !mouse_check_button(mb_left)
{
if mouse_check_button(mb_right)
{
forca = 1;
}
}
else
{
forca = 0;
}
}