Mostrar Mensajes

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.

Mensajes - petpan13

46
He abierto tu proyecto asi por encima con el movil y ahy un cacao tienes muchos scrips
Y es sencillo agregar una bala deberias edtudiar mas el networking ahora te paso tuto manual
https://drive.google.com/file/d/0B4cR3S8865zrM3l6UTgyeVZLeWc/view?usp=docslist_api
47
Preguntas y respuestas / comprimir sonido
Febrero 02, 2016, 11:13:33 AM
¿Sabeis de algun programa que comprima mucho los sonidos?
48
Vale mas q nada para facilitar animacion
Hace tiempo hice un proyecto con imagenes vectorizadas
Y animacion de las mismas con draw sprite ext
Despiezando el personaje y aplicando rotaciones
Spine mejora y facilita el proceso entonces esa es la ventaja

49
game maker ofrece inserta dibujos vectorizados sin necesidad de spine
50
muchísimas gracias funciona a la perfección RESUELTO
51
Preguntas y respuestas / spine culaes son sus vetajas
Febrero 01, 2016, 03:43:36 PM
Bueno mi pregunta es esa que ventajas tiene lo aveis usado
gracias de antemano
52
tanto el server como el cliente tiene que recivir información de esa bala y no la has añadido por eso no se ve
53
Pon en el evento create de las virtual keys


display_set_gui_size(view_wview[0],view_hview[0]);
54
tengo un jostick en 4 direcciones con radianes y quiero ponerlo en 8 podian ayudarme?

valores del script

///vstick_init(stick_id,x,y,r,square_calculation,backsprite,frontsprite)
/*
WARNING!: The virtual joysticks use the globalvar vstick to hold the array.
Please do not use this variable elsewhere in your game, as it will cause conflicts.

This script adds a joystick with a given id.

stick_id:           The id to be given to the stick. This can be any integer value, but should be unique to each joystick.

x,y:                The x and y values are relative to the GUI layer, as the vstick_draw function is supposed
                    to be called in the GUI_draw event.

r:                  The radius of the joystick.

square_calculation: If enabled, it will map out the values on the dpad from -1 to 1 (follows GM's axis)
                    over the entire circle, instead of the actual x and y values (very much like on a gamepad).
                   
backsprite:         In case you want to use a background sprite for the thumbstick, instead of the default coded variant. The origin should be the center of the dpad.
                    If you don't have a sprite for this, set this value to noone.
                   
frontsprite:        The sprite for the actual stick itself. Works like the backsprite.
*/

globalvar vstick;
vstick[argument0,0]=0;//vstick xaxis
vstick[argument0,1]=0;//vstick yaxis
vstick[argument0,2]=argument3;//vstick radius
vstick[argument0,3]=argument1;//vstick x
vstick[argument0,4]=argument2;//vstick y
vstick[argument0,5]=1;//vstick active
vstick[argument0,6]=0;//vstick drag --> vstick_check
vstick[argument0,7]=-1;//vstick device id
vstick[argument0,8]=0;//vstick direction in radians
vstick[argument0,10]=argument4;//square calculation
vstick[argument0,11]=0;//draw_xaxis
vstick[argument0,12]=0;//draw_yaxis
vstick[argument0,13]=argument5;//vstick backsprite
vstick[argument0,14]=argument6;//vstick frontsprite
vstick[argument0,15]=0; //vstick_check_pressed
vstick[argument0,16]=0; //vstick_check_released






parte del scrip



   vstick[argument0,8]=degtorad(point_direction(vstick[argument0,3],vstick[argument0,4],device_mouse_x_to_gui(vstick[argument0,7]),device_mouse_y_to_gui(vstick[argument0,7])));
        vstick[argument0,0]=cos(vstick[argument0,8])*min(point_distance(vstick[argument0,3],vstick[argument0,4],device_mouse_x_to_gui(vstick[argument0,7]),device_mouse_y_to_gui(vstick[argument0,7])),vstick[argument0,2])/vstick[argument0,2];
        vstick[argument0,1]=-sin(vstick[argument0,8])*min(point_distance(vstick[argument0,3],vstick[argument0,4],device_mouse_x_to_gui(vstick[argument0,7]),device_mouse_y_to_gui(vstick[argument0,7])),vstick[argument0,2])/vstick[argument0,2];
        vstick[argument0,11]=vstick[argument0,0];
        vstick[argument0,12]=vstick[argument0,1];
 
        if vstick[argument0,10]{ //mapping
            var xunscaled,yunscaled;
           
           
             if (vstick[argument0,8]<=pi/4 or vstick[argument0,8]>=7*pi/4)
            {
                xunscaled=1;
                yunscaled=-tan(vstick[argument0,8]);direB=5
            }
            if (vstick[argument0,8]>=pi/4 and vstick[argument0,8]<=3*pi/4)
            {
                xunscaled=1/tan(vstick[argument0,8]);
                yunscaled=-1;direB=2
            }
            if (vstick[argument0,8]>=3*pi/4 and vstick[argument0,8]<=5*pi/4)
            {
                xunscaled=-1;direB=3
                yunscaled=tan(vstick[argument0,8]);
            }
            if (vstick[argument0,8]>=5*pi/4 and vstick[argument0,8]<=7*pi/4)
            {
                xunscaled=-1/tan(vstick[argument0,8]);
                yunscaled=1;direB=4
           }


y el enlace del marketplace del que he modificado
            https://marketplace.yoyogames.com/assets/258/virtual-joysticks
55
no era el device raw era un error de programación  el i e di cuenta después al formular la pregunta :-[ gracias de todos modos
lo del tamaño lo he cambiado luego lo pruebo
56
El link de la imagen no es valido
57
no es un error es normal si se va el cliente el servidor sigue en el juego
si lo que quieres es que también se vaya el servidor tienes que crear un código
de chekee sobre los clientes conectados que chekee que una vez entren los clientes
si después no hay clientes cierre el juego creado o lo pregunte al usuario
si lo chekeara desde un principio no crearía la partida

¿comprendes?


algo asi improvise no he probado ni nada
if global.PlayerTotal>1

conectados=true


if global.PlayerTotal=1 and conectados=true


// disconnect a CLIENT. First find the player instance using the socket ID as a lookup
        var inst = ds_map_find_value(Clients, sock );
        // Create a disconnecting "PUFF" at the current coords
        instance_create( inst.x, inst.y, oPuff );

                // Delete the socket from out map, and kill the player instance
        ds_map_delete(Clients, sock );
        with(inst) { instance_destroy(); }
       
        // Also delete the socket from our global list of connected clients
        var index = ds_list_find_index( socketlist, sock );
        ds_list_delete(socketlist,index);


58
Bueno en windows va genial pero cuando lo pruebo en android da problemas no lo chekea

if device_mouse_check_button_pressed(i,mb_left) and  device_mouse_raw_x  (0)<120

sospecho que la coordenada en bruto a cambiado osea 120 pero no debería

¿alguien ha tenido problemas con estas funciones que opináis que pude ser?

trabajo en una view de w640 h400

gracias de antemano
59
Oye esta muy bien a mi me gusta sencillo eficaz por pedir disparos enemigo menús pero
en general esta muy bien
60
https://www.dropbox.com/s/viqykq2uv6e8igp/Torretamio.gmz?dl=0

ahí tienes ejemplo y buscar mas leer mas lo de siempre