The GameMaker: Studio™ family of products caters to entry-level novices and seasoned game development professionals equally, allowing them to create casual and social games for, iOS, Android, desktop and the Web (HTML5) in record time and at a fraction of the cost!

As well as making games development 80 percent faster than coding for native languages, developers can create fully functional prototypes in just a few hours, and a full game in just a matter of weeks.

And when you're done, GameMaker: Studio™ will produce an "app store"-ready iOS, Android or OS X app, Windows executable or HTML5 code, all at the push of a button and all from the same source code.

Discover how easy it is for yourself and get access to GameMaker: Studio™'s key features – including its easy to use integrated development environment (IDE) powerful scripting language and Box 2D Physics – by simply downloading GameMaker: Studio™ for free.

Image RSS Feed Latest Screens
Rusty Guns 3 1916 Gang Garrison 2
Blog RSS Feed Report abuse Latest News: The Mechanics of Trading Cards

About Waxpack Summer with 0 comments by randyhook on Jul 28th, 2014

The core of Waxpack Summer is trading cards. Currently, the game only supports trading with NPCs, so I had to devise a system that would make trading with the computer somewhat realistic. As I continue to build the game, these algorithms can surely be tweaked and improved, but for now, I just wanted to get the basics working.

Improved Look for the Trading Screen

It all starts with how a card set is generated. At the start of the game, after the player selects a summer to play, the game brings in all of the team and player data. Each player's card is created and given a scarcity level. Right now, this is how that level is assigned:

BattersBatting average from .000 to .249 = CommonBatting average from .250 to .349 = UncommonBatting average greater than .349 = Rare

PitchersEarned run average greater than 3.25 = CommonEarned run average from 2.50 to 3.25 = UncommonEarned run average less than 2.50 = Rare
Players get cards by purchasing them at the store with money earned from mowing lawns. Each pack is randomly generated, taking into account the scarcity levels.

Now we are to the point where we want to trade cards with an NPC. What I've done, in order to give the NPC an easy way to determine if they want to make the trade or not is to assign a "trade weight". Different factors of the trade alter the trade weight (initially set to 0) either positively or negatively. In the end, if the trade weight is greater than 0, the NPC will make the trade. If not, he will refuse the trade.

Here are the trade weight adjusters:Is the player offering more cards than he is requesting? +1 per additional cardDoes the friend already have the card the player is offering? -1Does the friend need the card the player is offering? +1
 Total the scarcity levels for each side's offer using the following:Common = 0Uncommon = 1Rare = 2
 If the player is offering less total scarcity than the friend, subtract the difference.If the player is offering more total scarcity than the friend, add the difference.
 Let's see this in action.

Friend Refusing a Trade

You can see here that I'm offering Dennis Martinez to my friend in return for Chet Lemon. Martinez is a 3.66 ERA pitcher and Lemon is a .318 batter. Using the weight adjusters, the friend doesn't like the trade.

Friend Accepting a Trade

Now you can see I sweetened the deal by also throwing in a Vic Correll card. Now my friend accepts the trade.

So, as I've mentioned, this is a pretty basic method for handling the AI functions for trading. Obviously there are a few flaws that need to be fixed. For example, I'm only looking at the last year's stats for the player. If it's a superstar card, but the player had an off year last year, he would still command a high demand.

I welcome any suggestions any of you may have on what would make a stronger algorithm to determine if a trade would be made or not. This is something that I can continuously improve and it is an interesting challenge. I hope you enjoyed this look at how the trading functions work at this point, and I look forward to hearing from you.

Media RSS Feed Latest Video
Games
-Wander-

-Wander- -Wander- Indie

Updated 4 months ago Released Mar 2, 2014 Single Player Platformer

Mono, a lonely dreamer who commutes home from the bus stop every night, isn't... normal. He sees things that aren't there, and due to lack of friends...

.mcube

.mcube .mcube Indie

Updated 3 months ago Released Mar 19, 2014 Single Player Arcade

.mcube is a game developed in three days available on Windows, Android and HTML5. This is the first game released by Famega Games, a team of young italian...

//8dcff4

//8dcff4 //8dcff4 Indie

Updated 1 day ago TBD Single Player Platformer

In a land of corporate drones, one creative boy must venture out to seek refuge from the expectations of society. This challenging platformer will have...

1 Monster Truck vs. 61 Children

1 Monster Truck vs. 61 Children 1 Monster Truck vs. 61 Children Indie

Updated 2 years ago Released Dec 21, 2010 Single Player Racing

So, I saw this ad one night about some backup camera and 61 children (or something) "1 monster truck vs. 61 Children" I said, "Will he make the jump?...

10 Second Ninja

10 Second Ninja 10 Second Ninja Indie

Updated 1 year ago TBD Single Player Arcade

You are a ninja. The enemies are robot Nazis from SPACE. You have 10 seconds to kill all of the enemies in each stage. You need smarts, skills, and good...

Post comment Comments  (10 - 20 of 67)
rhayt7
rhayt7 May 30 2013, 2:27am says:

how do u make 3d games ?

-2 votes     reply to comment
InvaderGames
InvaderGames Oct 19 2012, 10:16am says:

This should be updated with the GameMaker Studio information.

+3 votes     reply to comment
XanT
XanT Oct 22 2012, 6:52pm replied:

Yep in the process of adding more info/images to the page :) Thanks.

+3 votes     reply to comment
Bonesy0
Bonesy0 Aug 17 2012, 5:20pm says:

Despite criticism, it's still a good engine with many possibilities. It's main reputation comes from the noobs and young children who buy it to make games. Many, many games made in this engine are crappy, but this is usually due to having no knowledge or being lazy. If this engine is used correctly (extensions, scripting, actually good graphics), I have no doubt that a good product can be made.

+11 votes     reply to comment
Batguerra
Batguerra Feb 20 2013, 3:16am replied:

Of course there are good games! For example Hotline Miami, award winner and for me the best indie game till now!

+4 votes     reply to comment
HabitueGames
HabitueGames Oct 21 2012, 11:03am replied:

I'm trying to make my first release with GameMaker.
I've made games before in gamemaker but this will be the first one that I will release.

+6 votes     reply to comment
dark_grome3326
dark_grome3326 Aug 3 2012, 3:56am says:

this a cool engine

+3 votes     reply to comment
BenLap
BenLap Jul 31 2012, 6:58pm says:

Hands down, GameMaker is a straightforward tool to make simple games. You can get a rough prototype of your game up and running in no time. The drag and drop buttons can really help beginners learn the nuances of coding, but GameMaker also includes a code editor for more advanced users.

+3 votes     reply to comment
Cheese47
Cheese47 Oct 11 2012, 5:02pm replied:

I totally agree! GML is very useful for making advanced games and as you progress you almost leave d&d behind.

+3 votes     reply to comment
Elec09
Elec09 Dec 14 2011, 9:11pm says:

Excellent game creation program, (only one that I have used), but some one needs to update this page! A new version of game maker was released (8.1) some time ago, and I don't think that that is mentioned here. However, this is a great program, and I highly recommend for everyone to try it out.

+7 votes     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Company
YoYo Games
Contact
Send Message
Official Page
Yoyogames.com
Licence
Commercial
Release Date
Released Nov 14, 1999
Engine Watch
Track this engine
Share
Community Rating

Average

8.4

196 votes submitted.

You Say

-

Ratings closed.

Highest Rated (4 agree) 10/10

Great to make both easy, simple games in minutes for beginners, and tons of options for those who are willing to go one step further. Game maker has been used to create commercial games, for iPods, iPhones, iPads and psp. The game maker community on Yoyogames is strong (well over 100 000 members) and very supportive. Posting your game on this community can result in it being published on an international scale, in addition to being featured and played by thousands of people.Yoyogames have also released…

Dec 14 2011, 8:56pm by Elec09

Embed Buttons

Promote Game Maker Studio on your homepage or blog by selecting a button and using the HTML code provided (more).

Game Maker Studio Game Maker Studio
Game Maker Studio
Statistics
Rank
7 of 644
Last Update
1 day ago
Watchers
263 members
Games
1,327
Files
24
News
1,228
Features
54
Tutorials
10
Reviews
33