[GAME CHAT] have YOU made a game today?

Discussion in 'Pop Culture' started by Varkarrus, Jul 13, 2011.

  1. Varkarrus

    Varkarrus I have class

    I HAVE but I can't show it to you yet.

    so instead I ask you

    Have YOU made any games? Tell us more!
  2. illisid

    illisid Guest

    I've been in the mood to pick my pet project back up. I'll show it to you if I ever get it doing anything. Vark, you use gamemaker right? what version, and do you use code or drag and drop?
  3. Varkarrus

    Varkarrus I have class

    I have 8.0, and I use a 50/50 mix of D&D and code. I mainly use code for arrays, for loops, complicated variables, whereas I use D&D to organize my codes into easily manageable chunks.

    For example, here is a chunk of code that manages weapon reloading in my duck game.

    [​IMG]

    (in hindsight I wonder why I didn't just do that entire part in code. That might not be the best example, then.)
  4. MadameSB

    MadameSB Hot blooded

    I have a program by the name of Ren'Py, its best at making more visual novel-esque games than anything else.
    I've dabbled in some coding for it, and think its about time I actually tried to do something with it.
    I'm working on some character skecthes right now, but it'd be better if I had an idea of what kind of story I wanted to do.
    Maybe a mystery
    Who knows.
  5. illisid

    illisid Guest

    Have you ever taken a look at the spelunky source code? there is a lot to learn from that.

    Like in my game I'm trying to make a top down movement system similar to diablo 2, and I looked at the bats from spelunky to figure it out. And I skipped a step because I thought it was unnecesary but turns out I'm a moron and that causes a bug. Let's see if the code tags work here

    Code:
    {
        self.dir = degtorad(point_direction(self.x+7,self.y+7,mouse_x,mouse_y));
        self.xvel = 0;
        self.yvel = 0;
        self.xprev = x;
        self.yprev = y;
        if abs(mouse_x - self.x) > 2 && abs(mouse_y - self.y) > 2
        {
            if mouse_check_button(mb_left)
            {
                xvel = round(2*cos(dir));
                yvel = round(-2*sin(dir));
                if xvel >= 0
                {
                    for(x=x;x<xprev+xvel;x+=1)
                    {
                        if (place_meeting(x+1,y,obj_solid))
                        {
                            break;
                        }
                    }
                }
                if xvel < 0
                {
                    for(x=x;x>xprev+xvel;x-=1)
                    {
                        if (place_meeting(x-1,y,obj_solid))
                        {
                            break;
                        }
                    }
                }
                if yvel >= 0
                {
                    for(y=y;y<yprev+yvel;y+=1)
                    {
                        if (place_meeting(x,y+1,obj_solid))
                        {
                            break;
                        }
                    }
                }
                if yvel < 0
                {
                    for(y=y;y>yprev+yvel;y-=1)
                    {
                        if (place_meeting(x,y-1,obj_solid))
                        {
                            break;
                        }
                    }
                }
            }
        }
    }
    
    yessss
    basically what this does: first it clears all my temporary variables. It sets a direction to the mouse from your character, then uses trig to figure out how far it needs to move in each direction in order to get to that point. Then it sets the current position and moves you forward towards that new point until you reach it or you hit a wall in either direction; that way you slide against walls and it's pretty cool. But I had to round some variables and didn't mess with the remainder, which I should have and now it's a little buggy.
    Last edited by a moderator: Jul 13, 2011
  6. Varkarrus

    Varkarrus I have class

    I would have just used lengthdir_x and lengthdir_y. Infinately simpler IMO.

    Is the step you skipped the one where you set the variables to 0? I like to just check off "set uninitialized variables to 0".
    This sometimes causes problems with string variables but weh. It's worth it IMO.

    I think I did learn one thing and that's to check every pixel in between 2 points when doing collision checking???
  7. Tesseract

    Tesseract Regrets Choices Thus Far

    I did this for my 6000th post and this for being here (there? Whatever) a year
  8. Varkarrus

    Varkarrus I have class

    woah that 6000th post game is CUH RAY ZEE
  9. illisid

    illisid Guest

    the step I skipped was the one where I kept track of the remainders and added them up. Without that I can basically only move in 8 directions if I'm going at a speed of 1. It's been a while since I coded this but I remember trying lengthdire and there was something wrong with that, I think it didn't take into account something I might use later or something like that I don't remember
  10. cesiumtea

    cesiumtea Guest

    I'm adding achievements to the thing that I was doing earlier
    with the text and the vomit and stuff
    Python is magic
    ...maybe more magic than friendship :|a
    (but nothing is more magic than perl, it's just not that great to write games in)
  11. Varkarrus

    Varkarrus I have class

    Just reposting this for posteriority's sake.
  12. Varkarrus

    Varkarrus I have class

  13. illisid

    illisid Guest

    thaaaaaaat password image is too small to read D:
  14. Varkarrus

    Varkarrus I have class

    zoom in I guess?
  15. DevilEd

    DevilEd Call me BellaDante

    Is the first word in the password Time?
  16. Varkarrus

    Varkarrus I have class

    Yes.

    As an FYI, when inputting the password there are no spaces or capitals.
  17. DevilEd

    DevilEd Call me BellaDante

    Wait i was right, nice. Is it time to make the donuts?
  18. Varkarrus

    Varkarrus I have class

    no
    if you want the password, it's below. Or you can not select it and figure the rest out on your own.

    timetorapbefast
  19. illisid

    illisid Guest

    Oh hey I should probably show off my brother's game here.

    [video=youtube;2VYfY-jvLJ0]http://www.youtube.com/watch?v=2VYfY-jvLJ0[/video]

    Here is the link to the GMC topic. Any feedback on the game is very welcome!
  20. Varkarrus

    Varkarrus I have class

    I saw this! It looks kickass and better than anything I could make at the moment :p

Share This Page