Suena muy interesante! :D voy a probarlo
:D Yo recien estoy comenzando un juego de terror XD cuando lleve buen progreso lo subire al foro
:D Yo recien estoy comenzando un juego de terror XD cuando lleve buen progreso lo subire al foro
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Cita de: brunoxzx en Junio 29, 2010, 07:36:43 AMSoy nuevo en el foro, asi que si estoy haciendo mal en revivir este tema, solo diganmeloCita de: DEADOFALL en Junio 29, 2010, 04:59:29 AMYo te respondi y me respondiste que te sirbio y que lo habias entendido.
Ni ami me respondieron bien acerca de este tema :'( :-[
MM aver usa este metodo.
en create ponX=x
en begin step ponX=x
cambia tus codigos de movimiento de izquierda y derecha por estos no deben usar place_free tus codigos de movimiento.
IZQUIERDAX-=4
DERECHAX+=4
y pon esto en end stepif place_free(X,y+4)
{
x=X
y=y+4
exit;
}
if place_free(X,y)
{
x=X
exit;
}
if place_free(X,y-4)
{
x=X
y=y-4
exit;
}
Ten cuidado las X mayusculas no significan lo mismo que las minusculas
O mejor pasame el editable de tu juego y te lo arreglo
Citar
Information about object: character
Sprite: stand
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: stand
Create Event:
set variable move_speed to 4
Step Event:
execute code:
if place_free(x,y+1)
{
if sprite_index == right
{
sprite_index = jump_right;
}
if sprite_index == stand
{
sprite_index = jump_up;
}
if sprite_index == left
{
sprite_index = jump_left;
}
}
else
{
if sprite_index == jump_right
{
sprite_index = stand;
}
if sprite_index == jump_up
{
sprite_index = stand;
}
if sprite_index == jump_left
{
sprite_index = stand;
}
}
if (sprite_index == jump_right)
{
image_index = 2;
image_speed = 0;
}
if (sprite_index == jump_left)
{
image_index = 2;
image_speed = 0;
}
if (sprite_index == jump_up)
{
image_index = 2;
image_speed = 0;
}
if keyboard_check_released(vk_left)
{
if sprite_index == left
{sprite_index = stand}
}
if keyboard_check_released(vk_right)
{
if sprite_index == right
{sprite_index = stand}
}
if relative position (0,1) is collision free for Only solid objects
set the gravity to 0.5 in direction 270
else
set the gravity to 0 in direction 270
Collision Event with object concreto:
move in direction direction at most 12 till a contact with solid objects
set the vertical speed to 0
Collision Event with object pared:
move in direction direction at most 12 till a contact with solid objects
set the vertical speed to 0
Collision Event with object montaña:
move in direction direction at most 12 till a contact with solid objects
set the vertical speed to 0
Keyboard Event for <Space> Key:
if relative position (0,1) is not collision free for Only solid objects
set the vertical speed to -10
Keyboard Event for <Left> Key:
if relative position (-move_speed,0) is collision free for Only solid objects
execute code:
x-=move_speed
set the sprite to left with subimage image_index and speed .5
Keyboard Event for <Right> Key:
if relative position (move_speed,0) is collision free for Only solid objects
execute code:
x+=move_speed
set the sprite to right with subimage image_index and speed .5
Page generada en 0.022 segundos con 12 consultas.