Von hinten sehen ...

  • GM 8
  • Von hinten sehen ...

    Ich habe als Player so einen explorer ausgewehlt der schon vorgegeben war. Den gibt es wie er nach links kuckt und nach rechts ... aber leider gibt es denn nicht,wie er nach vorne kuckt, also das man nur seinen Rücken sieht ;( .Weiss jem ob man das so drehen kann oder so?


    PS: Problem hat sich ghelöst habs nur nicht gesehen hab aber dann ne andere Frage :Wie kann man es machen , dass wenn speed 0 der Player stehen bleibt.Irgendwie if speed 0 = wechesel in Player und dann der stehen bleibt... aber wie genau ? welches sprite event etc ?

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von RockThatBody ()

  • Normalerweise bleibt der Spiele stehen wenn der Speed 0 ist. Ich nehme an das sich bei dir nur der Sprite nicht ändert.
    Versuch mal damit:

    GML-Quellcode

    1. if (speed == 0) {
    2. image_index = 0; //bei Animierten Bildern, einfach das Subimage auf den Standsprite ändern
    3. sprite_index = spr_stehen; //wenn du den Standsprite einzeln lädst
    4. }
  • [font=&quot]Information about object: player1-R[/font]


    [font=&quot] [/font]


    [font=&quot]Sprite: sprite1r[/font]


    [font=&quot]Solid: false[/font]


    [font=&quot]Visible: true[/font]


    [font=&quot]Depth: 0[/font]


    [font=&quot]Persistent: false[/font]


    [font=&quot]Parent: <no parent>[/font]


    [font=&quot]Mask: <same as sprite>[/font]


    [font=&quot] [/font]


    [font=&quot] Step Event:[/font]


    [font=&quot]if relative position (0,1) is collision
    free for Only solid objects[/font]



    [font=&quot]
    set the gravity to 0.5 in direction 270[/font]



    [font=&quot]else[/font]


    [font=&quot]
    set the gravity to 0 in direction 270[/font]



    [font=&quot]if vspeed is larger than 12[/font]


    [font=&quot]
    set the vertical speed relative to 12[/font]



    [font=&quot] [/font]


    [font=&quot]Collision Event with object wall:[/font]


    [font=&quot]move in direction direction at most 12
    till a contact with all objects[/font]



    [font=&quot]set the vertical speed to 0[/font]


    [font=&quot]start moving in directions 000010000 with
    speed set to 0[/font]



    [font=&quot] [/font]


    [font=&quot]Collision Event with object punkte:[/font]


    [font=&quot]kill all instances at position (x,y)[/font]


    [font=&quot] [/font]


    [font=&quot]Collision Event with object Platte:[/font]


    [font=&quot]start moving in directions 000010000 with
    speed set to 0[/font]



    [font=&quot] [/font]


    [font=&quot]Collision Event with object block1:[/font]


    [font=&quot]start moving in directions 000010000 with
    speed set to 0[/font]



    [font=&quot] [/font]


    [font=&quot]Collision Event with object block2:[/font]


    [font=&quot]start moving in directions 000010000 with
    speed set to 0[/font]



    [font=&quot] [/font]


    [font=&quot]Collision Event with object enemy-block2:[/font]


    [font=&quot]start moving in directions 000010000 with
    speed set to 0[/font]



    [font=&quot] [/font]


    [font=&quot]Collision Event with object Enemy2block1:[/font]


    [font=&quot]start moving in directions 000010000 with
    speed set to 0[/font]



    [font=&quot] [/font]


    [font=&quot]Collision Event with object Enemy2block2:[/font]


    [font=&quot]start moving in directions 000010000 with
    speed set to 0[/font]



    [font=&quot] [/font]


    [font=&quot]Collision Event with object points-grube:[/font]


    [font=&quot]start moving in directions 000010000 with
    speed set to 0[/font]



    [font=&quot] [/font]


    [font=&quot]Collision Event with object bonu-check in:[/font]


    [font=&quot]play sound Door; looping: false[/font]


    [font=&quot] [/font]


    [font=&quot]Keyboard Event for <Left> Key:[/font]


    [font=&quot]change the instance into object player-L,
    yes performing events[/font]



    [font=&quot]if relative position (-4,0) is collision
    free for Only solid objects[/font]



    [font=&quot]
    jump relative to position (-5,0)[/font]



    [font=&quot] [/font]


    [font=&quot]Keyboard Event for <Up> Key:[/font]


    [font=&quot]if relative position (0,1) gives a
    collision with Only solid objects[/font]



    [font=&quot]
    set the vertical speed to -10[/font]



    [font=&quot] [/font]


    [font=&quot]Keyboard Event for <Right> Key:[/font]


    [font=&quot]if relative position (4,0) is collision
    free for Only solid objects[/font]



    [font=&quot]
    jump relative to position (5,0)[/font]



    [font=&quot] [/font]


    [font=&quot]Key Press Event for <Space> Key:[/font]


    [font=&quot]create instance of object bullet at
    relative position (0,0) with speed 15 in direction 0[/font]



    [font=&quot] [/font]


    [font=&quot]Key Release Event for <Right> Key:[/font]


    [font=&quot]change the instance into object
    PlayerRstehend, yes performing events[/font]



  • Benutzer online 1

    1 Besucher