• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.


  • Content count

  • Joined

  • Last visited

Community Reputation

106 Neutral

About boblehest

  • Rank
  1. Ok, that's kinda what I assumed, it just didn't make sense to me that the 2 if blocks set different y values (I assume those are x/y values for the card position), since if they're on the same row, they should have the same y value, right? sprite_index=spr_mini sound_play(snd_summon) if not  collision_point(x, y, obj_mzone1,1,1) { x = 339; y = 326; } // The last part of this is redundant, you just checked if not collision_point for mzone1 above, if that failed, then there was a collision. // There is no need to check again                             v else if not  collision_point(x, y, obj_mzone2,1,1) and collision_point(x, y, obj_mzone1,1,1) { x = 416; y = 400; // why is this not 326 as well? } First, I don't know why your code fails to work the way you intended, I don't think you provided all the relevant code (I don't know Game Maker though.) Now for some pseudo code for a better approach: // I don't know how you organize your objects in Game Maker, so I'm kinda coding while blind here. // Somewhere, you should have stored information about zone sizes, and on screen positions. // You should never use your objects' on screen positions to "store" information. I hope you can see the difference here.   // Store these variables somewhere.. spell_zone_slots = 5; spell_zone_base_x = 339; spell_zone_spacing = 80; // Horizontal space between cards spell_zone_base_y = 326; spell_zone_slots_taken = 0;   // card_id would be some identification for that specific card instance. function add_card_to_spell_zone(card_id) {   if (spell_zone_slots_taken >= spell_zone_slots) {     // No more room, do whatever return;   } ? // In case you need to check which card is in slot x, you can check spell_zone_cards[x]. I don't know if you need to or not.   spell_zone_cards[spell_zone_slots_taken] = card_id;   card_id.x = spell_zone_base_x + spell_zone_spacing * spell_zone_slots_taken;   card_id.y = spell_zone_base_y;     spell_zone_slots_taken += 1; } I hope you get the concept here. Store the slot state in variables so you know what slots are taken, you should not have to check for any collision for this.
  2. You should probably follow some tutorials, because your approach is a bit misguided. I could tell you straight away that collision checking is just a very bad approach to this problem, and that you should be using arrays here.
  3.   I wouldn't make a habit of depending on implementation defined behavior like that.
  4. [quote name='kunos' timestamp='1342004691' post='4957984'] To recap, I'd suggest you to take a step back, and consider C# and especially Go as your introduction to programming. [/quote] Wait, what? You recommend he doesn't start with C++, but C# is OK? I'd NEVER recommend C# to anyone, unless they want to do what's best for Microsoft, and not for themselves.
  5. [quote name='Cornstalks' timestamp='1335829557' post='4936226'] [code]bl = (boolRep != 0) ? true : false;[/code] which is slightly common [/quote] Really? I've actually seen code like that several places, in the worst case (imo), like this: [code]return isEnabled ? true : false;[/code] Which of course is equivalent to [code]return isEnabled;[/code] The only different is that the first one is harder to understand, and takes longer to type.
  6. [quote name='cgpIce' timestamp='1333593288' post='4928366'] Hmm, well the main reason I asked was due to the background image in my menu not scaling too well when you reach higher resolutions, so I think my best bet is to have the menu itself have a set resolutions (within the screen) and have it choose the best based on your selected resolution, then surround the remaining with black, the game itself however will be able to cover your whole screen just fine, that sound just enough? or should I perhaps work at a different angle? [/quote] IMO forcing a low resolution isn't a viable solution to your problem, you might as well scale the background image in that case.