Home Forums Open Projects Zoidberg's GameMaker : Studio Resource Dump

This topic contains 2 replies, has 1 voice, and was last updated by Profile photo of JohnAZoidberg JohnAZoidberg 3 years, 8 months ago.

  • Author
    Posts
  • #2003
    Profile photo of JohnAZoidberg
    JohnAZoidberg
    Participant

    A simple script to spawn an object at an offset from the current object taking rotation in to account. Great for top down/space shooter games.

    ///scr_bullet(xoffset, yoffset, object);
    
    var xx = argument[0]; //x offset
    var yy = argument[1]; //y offset
    var bullet = argument[2]; // object to create
    var dis = point_distance(x, y, x+xx, y+yy); //distance to offset point
    var dir = point_direction(x, y, x+xx, y+yy); //direction to offset point
    
    instance_create(
    x + lengthdir_x(dis, dir + image_angle), 
    y + lengthdir_y(dis, dir + image_angle), 
    bullet);

    https://drive.google.com/open?id=0B09znu2RnfD0bXRPc20xc3ZLdmM&authuser=0

    ____________________________________________________

    Source for Break Invaders.

    @chaffXgrenade’s and my submission for the #TeamUpJam. I did the programming, chaff did most of the art, and the music is courtesy of the http://open.commonly.cc/ open game art bundle. It’s ugly, and crude, and full of bugs, but what do you expect. I’d rather it go here for people the play around with and learn from then sitting on my PC for 6 months before eventually I delete it.

    https://drive.google.com/file/d/0B09znu2RnfD0M3JOX1dpd19GWmM/view?usp=sharing

    • This topic was modified 3 years, 8 months ago by Profile photo of JohnAZoidberg JohnAZoidberg.
    • This topic was modified 3 years, 8 months ago by Profile photo of JohnAZoidberg JohnAZoidberg.
    • This topic was modified 3 years, 8 months ago by Profile photo of JohnAZoidberg JohnAZoidberg.
    • This topic was modified 3 years, 8 months ago by Profile photo of JohnAZoidberg JohnAZoidberg.
  • #2004
    Profile photo of JohnAZoidberg
    JohnAZoidberg
    Participant

    Reserved

  • #2005
    Profile photo of JohnAZoidberg
    JohnAZoidberg
    Participant

    Reserved Again

You must be logged in to reply to this topic.