41
Graphics / Re: Assistance wanted
« on: February 25, 2011, 09:43:49 pm »
that's quite a lot of unseen sprites and even if you get them i doubt they will be good enough.
r = 50
s = surface_create(room_width,room_height)
surface_set_target(s)
draw_clear(c_black)
surface_reset_target()
surface_set_target(s)
draw_set_blend_mode(bm_subtract)
draw_circle(mouse_x,mouse_y,r,0)
draw_set_blend_mode(bm_normal)
surface_reset_target()
draw_surface(s,0,0)
hold_d = keyboard_check(vk_down);
hold_u = keyboard_check(vk_up);
hold_l = keyboard_check(vk_left);
hold_r = keyboard_check(vk_right);
if (hold_r || hold_l || hold_d || hold_u && moveable) moving = 1 else moving = 0
if (x mod 16 == 0 && y mod 16 == 0)
{
if hold_r
{
movedelay+=1
direction = 0
sprite_index = sRight
image_speed = 1/8
if movedelay > 4
{
x+=movespeed
view_xview+=movespeed
}
}
if hold_l
{
movedelay+=1
direction = 180
sprite_index = sLeft
image_speed = 1/8
if movedelay > 4
{
x-=movespeed
view_xview-=movespeed
}
}
if hold_u
{
movedelay+=1
direction=90
sprite_index = sUp
image_speed = 1/8
if movedelay > 4
{
y-=movespeed
view_yview-=movespeed
}
}
if hold_d
{
movedelay+=1
direction=270
sprite_index = sDown
image_speed = 1/8
if movedelay > 4
{
y+=movespeed
view_yview+=movespeed
}
}
if !moving
{
movedelay = 0
image_index = 0
}
}
else
switch direction
{
case 0: x+=movespeed view_xview+=movespeed break;
case 90: y-=movespeed view_yview-=movespeed break;
case 180: x-=movespeed view_xview-=movespeed break;
case 270: y+=movespeed view_yview+=movespeed break;
}
i'm not sure what you mean by that ,-Always i use 30 FPS in my games. The overworld can´t go with more speed (is a big room)there isn't a system in place that deactivates objects outside of a certain threshhold past the view
I don't understand what difference that makes , more fps makes the game look smoother .
OKIt's the same one ! try adding the hurt pallete.