AccueilAccueil  FAQFAQ  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  Connexion  
Le Deal du moment :
Réassort du coffret Pokémon 151 ...
Voir le deal

 

 [RESOLU]GMS besoin d'aide avec physics_joint svp

Aller en bas 
4 participants
AuteurMessage
65c816
Très bonne participation
65c816


Messages : 148
Projet Actuel : Jeux retro Beathem'up all

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 10:36

Bonjour,
j’aimerai pouvoir faire une chaîne avec plusieurs maillons et un poids au bout et lorsque l'ont appuie sur la touche action droite le poids part vers la droite jusqu’à la distance maximum de maillons puis retourne à à sa place avec l'action normale de la gravité Smile
je vous mets un petit schéma afin d'exprimer au mieux ma pensée Wink

[RESOLU]GMS besoin d'aide avec physics_joint svp Schema10

merci D'avance pour votre aide Smile

_________________
Projects :
Page Officielle : TMNT4 Remix
Page Officielle FaceBook : Teenage Mutant Ninja Turtles Turtles in Time Cowabunga Edition
Page Officielle = Super Castlevania IV Reborn sur MegaTest.FR
Page Officielle = Super Castlevania IV Reborn sur SuperFamicom.fr
Page Officielle FaceBook : Super Castlevania IV Reborn
[RESOLU]GMS besoin d'aide avec physics_joint svp SHVC_TMNT4R-SC4R_728x90


Dernière édition par 65c816 le Dim 17 Aoû 2014 - 11:47, édité 1 fois (Raison : Resolu)
Revenir en haut Aller en bas
http://superfamicom.fr
onilink_
Modérateur
onilink_


Messages : 9180
Localisation : Montpellier
Projet Actuel : Planet Centauri
OniDev

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 10:39

Tu veux que la physique ai l'air réaliste ou juste un truc précis et pas trop moche? :p

_________________
[RESOLU]GMS besoin d'aide avec physics_joint svp Runningpotato1[RESOLU]GMS besoin d'aide avec physics_joint svp TvF6GED [RESOLU]GMS besoin d'aide avec physics_joint svp MdetltS
Revenir en haut Aller en bas
65c816
Très bonne participation
65c816


Messages : 148
Projet Actuel : Jeux retro Beathem'up all

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 11:08

Le deux mon Général Wink
j'ai trouvé quelque chose qui s'approche de ce que je cherche mais c'est pas en gml du coup je ne sais pas quel code mettre et ou le mettre
a vrai dire dans la doc de gms il est également là mon problème... je ne sait pas si leur code ils le mettent en create, step ou draw Sad

code Box2D http://www.emanueleferonato.com/2009/10/05/basic-box2d-rope/

Doc GMS http://docs.yoyogames.com/source/dadiospice/002_reference/physics/joints/physics_joint_revolute_create.html

Edit = ces enc*lés de chez yoyo ont viré la fonction "physics_joint_rope_create" Sad...

_________________
Projects :
Page Officielle : TMNT4 Remix
Page Officielle FaceBook : Teenage Mutant Ninja Turtles Turtles in Time Cowabunga Edition
Page Officielle = Super Castlevania IV Reborn sur MegaTest.FR
Page Officielle = Super Castlevania IV Reborn sur SuperFamicom.fr
Page Officielle FaceBook : Super Castlevania IV Reborn
[RESOLU]GMS besoin d'aide avec physics_joint svp SHVC_TMNT4R-SC4R_728x90
Revenir en haut Aller en bas
http://superfamicom.fr
Mobi
Utilisateur confirmé: Rang ****
Mobi


Messages : 1256
Localisation : Dijon

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 11:31


_________________
[RESOLU]GMS besoin d'aide avec physics_joint svp Penguin
Revenir en haut Aller en bas
onilink_
Modérateur
onilink_


Messages : 9180
Localisation : Montpellier
Projet Actuel : Planet Centauri
OniDev

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 12:05

Pas besoin de passer par exterm physics pour ça je pense, j'ai un pote qui a très bien réussi a faire une rope donc ça m'étonnerais qu'y ai aucun moyen.

_________________
[RESOLU]GMS besoin d'aide avec physics_joint svp Runningpotato1[RESOLU]GMS besoin d'aide avec physics_joint svp TvF6GED [RESOLU]GMS besoin d'aide avec physics_joint svp MdetltS
Revenir en haut Aller en bas
65c816
Très bonne participation
65c816


Messages : 148
Projet Actuel : Jeux retro Beathem'up all

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 12:35

J'ai déjà regardé du côté d'extrêmePhysics et je n'y avais pas vu de truc m'interressant Wink

_________________
Projects :
Page Officielle : TMNT4 Remix
Page Officielle FaceBook : Teenage Mutant Ninja Turtles Turtles in Time Cowabunga Edition
Page Officielle = Super Castlevania IV Reborn sur MegaTest.FR
Page Officielle = Super Castlevania IV Reborn sur SuperFamicom.fr
Page Officielle FaceBook : Super Castlevania IV Reborn
[RESOLU]GMS besoin d'aide avec physics_joint svp SHVC_TMNT4R-SC4R_728x90
Revenir en haut Aller en bas
http://superfamicom.fr
Mobi
Utilisateur confirmé: Rang ****
Mobi


Messages : 1256
Localisation : Dijon

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 12:41

étrange

_________________
[RESOLU]GMS besoin d'aide avec physics_joint svp Penguin
Revenir en haut Aller en bas
65c816
Très bonne participation
65c816


Messages : 148
Projet Actuel : Jeux retro Beathem'up all

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 13:30

Disons que extremePhysics me parait plys brouillon que Box2D Wink

_________________
Projects :
Page Officielle : TMNT4 Remix
Page Officielle FaceBook : Teenage Mutant Ninja Turtles Turtles in Time Cowabunga Edition
Page Officielle = Super Castlevania IV Reborn sur MegaTest.FR
Page Officielle = Super Castlevania IV Reborn sur SuperFamicom.fr
Page Officielle FaceBook : Super Castlevania IV Reborn
[RESOLU]GMS besoin d'aide avec physics_joint svp SHVC_TMNT4R-SC4R_728x90
Revenir en haut Aller en bas
http://superfamicom.fr
Asu
Utilisateur confirmé: Rang ****
Asu


Messages : 895

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 18:47

65c816 a écrit:
Disons que extremePhysics me parait plys brouillon que Box2D Wink
C'est drôle, je suis en train de l'utiliser en ce moment pour un jeu :p
Nan... Je trouve pas ça trop brouillon. C'est juste que le code est un peu compliqué, mais en se penchant sur les tutos aucun pb ^^'

_________________
‎<‎Cysteine‎>‎ nON mais la touche maj s'active/se désactive toute seule
‎<‎Cysteine‎>‎ et a du mal à réponDRE QUANd j'appuie dessus
‎<‎Cysteine‎>‎ et je l'ai démont2? IL Ny a rien DEDANs
Revenir en haut Aller en bas
65c816
Très bonne participation
65c816


Messages : 148
Projet Actuel : Jeux retro Beathem'up all

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 18:50

J'y rejeterai un oeil alors Wink
J'avais regarder pour de l'eau et n'avait pas trop été convaincu Wink

_________________
Projects :
Page Officielle : TMNT4 Remix
Page Officielle FaceBook : Teenage Mutant Ninja Turtles Turtles in Time Cowabunga Edition
Page Officielle = Super Castlevania IV Reborn sur MegaTest.FR
Page Officielle = Super Castlevania IV Reborn sur SuperFamicom.fr
Page Officielle FaceBook : Super Castlevania IV Reborn
[RESOLU]GMS besoin d'aide avec physics_joint svp SHVC_TMNT4R-SC4R_728x90


Dernière édition par 65c816 le Dim 10 Aoû 2014 - 21:15, édité 1 fois
Revenir en haut Aller en bas
http://superfamicom.fr
Asu
Utilisateur confirmé: Rang ****
Asu


Messages : 895

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 18:56

Bah l'eau n'est vraiment pas le plus génial dans cette ext ^^'
Je l'utilise pour gérer TOUTES les collisions de mes blocs, et avec le sleep auto c'est vraiment génial. J'ai réussi à coder mon moteur pour que les blocs s'écroulent quand ils n'ont plus de vie

_________________
‎<‎Cysteine‎>‎ nON mais la touche maj s'active/se désactive toute seule
‎<‎Cysteine‎>‎ et a du mal à réponDRE QUANd j'appuie dessus
‎<‎Cysteine‎>‎ et je l'ai démont2? IL Ny a rien DEDANs
Revenir en haut Aller en bas
65c816
Très bonne participation
65c816


Messages : 148
Projet Actuel : Jeux retro Beathem'up all

[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp EmptyDim 10 Aoû 2014 - 23:27

slt,
bon ben j'ai reussi en bidouillant un truc
create Ring1
Code:
var mainFixture, O_ID;
mainFixture = physics_fixture_create ();
physics_fixture_set_box_shape (mainFixture, sprite_get_width (sprite_index),sprite_get_height(sprite_index));
O_ID = instance_create (x+sprite_get_width(sprite_index), y, obj_Ring2);
physics_fixture_bind (mainFixture, id);
physics_fixture_bind (mainFixture, O_ID);
physics_joint_revolute_create (id, O_ID, x+sprite_get_width(sprite_index), y, -90, +90,1,100,2,0,0);
physics_fixture_delete (mainFixture);

step Boule    
   
Code:
if gamepad_is_connected(pad)
        {
        /***************************************************
          Controls au pad (XBOX360 ou PS3)
         ***************************************************/
        // bouton haut
            if gamepad_button_check_pressed(pad,padUp) {physics_apply_impulse(x,y,0,-0.02);}
        
        //bouton bas
            if  gamepad_button_check_pressed(pad,padDown) {physics_apply_impulse(x,y,0,+0.02);}
            
        //bouton gauche            
            if gamepad_button_check_pressed(pad,padLeft) {physics_apply_impulse(x,y,-0.02,0);}
        
        //bouton droit            
            if gamepad_button_check_pressed(pad,padRight) {physics_apply_impulse(x,y,+0.02,0);}         
          
        }
    else
        {
        /***************************************************
          Controls au clavier
         ***************************************************/
        // bouton haut
            if keyboard_check_pressed(keyUp) {physics_apply_impulse(x,y,0,-0.01);}
        
        //bouton bas
            if keyboard_check_pressed(keyDown) {physics_apply_impulse(x,y,0,-0.01);}
            
        //bouton gauche
            if keyboard_check_pressed(keyLeft) {physics_apply_impulse(x,y,0,-0.01);}
        
        //bouton droit
            if keyboard_check_pressed(keyRight) {physics_apply_impulse(x,y,0,-0.01);}
        }

_________________
Projects :
Page Officielle : TMNT4 Remix
Page Officielle FaceBook : Teenage Mutant Ninja Turtles Turtles in Time Cowabunga Edition
Page Officielle = Super Castlevania IV Reborn sur MegaTest.FR
Page Officielle = Super Castlevania IV Reborn sur SuperFamicom.fr
Page Officielle FaceBook : Super Castlevania IV Reborn
[RESOLU]GMS besoin d'aide avec physics_joint svp SHVC_TMNT4R-SC4R_728x90
Revenir en haut Aller en bas
http://superfamicom.fr
Contenu sponsorisé





[RESOLU]GMS besoin d'aide avec physics_joint svp Empty
MessageSujet: Re: [RESOLU]GMS besoin d'aide avec physics_joint svp   [RESOLU]GMS besoin d'aide avec physics_joint svp Empty

Revenir en haut Aller en bas
 
[RESOLU]GMS besoin d'aide avec physics_joint svp
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» besoin daide IA pour zombie [résolu]
» Yo ! lol :p besoin daide
» [Résolu] [XHTML] Besoin d'aide simple avec div class="aside"
» [Resolu] Orienter un vecteur 2D avec un angle avec cosinus et sinus.
» [Resolu]Problème avec collision _ line avec mur entre 2 obj

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Forum Le CBNA :: Développement :: Entraide débutants-
Sauter vers: