I'm currently testing different ways to go fullscreen using an external Javascript file - however I'm not 100% how effective the method is (and the tests I've performed don't work on IE). Although I've tested a couple of methods for Chrome & FF and they seem to work. You need the users 'permission' to do this though. The method I'm testing works by adding a button on the screen dynamically, then when the user clicks it, the game goes fullscreen...
Obviously the method isn't brilliant, and will only work on more modern browsers (but then, so will HTML5) - has anyone actually managed to get something working on IE? I guess a fullscreen 'button' is better than nothing.
For anyone interested, file project can be downloaded here http://cryset.com/si...tFullscreen.gmz
- Game Maker Community
- → Viewing Profile: Topics: beatson
beatson
Member Since 12 Jun 2008Offline Last Active May 14 2013 06:17 PM
About Me
Play games, earn real cash! Developers? Always wanted to sell your indie titles? Well now you can! http://t.co/YwiIUGHK for more details
Community Stats
- Group GMC Member
- Active Posts 317
- Profile Views 6686
- Member Title GMC Member
- Age 20 years old
- Birthday April 10, 1993
-
Gender
Male
-
Location
UK
-
Interests
Game making, programming, web design.
-
Version
GM8
Topics I've Started
Going Fullscreen
24 November 2012 - 11:32 PM
CrySet Ad publishing
03 November 2012 - 01:02 AM
topic approved by forum administration

As some of you may or may not know, I recently released an ad campaign system on CrySet. Well, I've improved on that system and added in-game advertising. Developers can now download an HTML5 extension (or demo project) and use 2 simple functions to display ads within their game. You'll earn the same revenue as games do now, with the only difference being that you can potentially earn a lot more from using in-game ads.
You're allowed to rotate between ads every 3 minutes (earning more revenue everytime the ad rotates). This system isn't just limited to games on CrySet either, your games can earn revenue from any site (as long as the ad is displayed).
The ads are displayed using 1 function, and removed with another. You can also position the ads using x/y coordinates.
It's simple to use, and the ads are only 320x50, so they don't take up much room.
For an example, and links to download the extension/project, click here
For information on how to advertise within a game, click here
[solved]json_decode help
15 July 2012 - 06:24 PM
Hey, I'm not amazing when it comes to GML - so I need a bit of help decoding an array that I'm sending to my game.
Currently, I'm sending the data to the game in JSON. I understand there is a json_decode() function in GML which will put my data into a ds_map, however I'm not sure as to how exactly it'l handle my array of data due to its format...
here's and example of my array (in JSON format):
and here it is in an array (through PHP):
This is all just test data at the moment, and all the data will change constantly (including array names like user_gold). I'd prefer NOT to alter the array structure itself. If the json_decode() function is sufficient, could someone explain how I might access the values in the array using ds_map_find_value()? (e.g, let's say I want to get [user_gold][FieldData][Data][0][Content]).
Any help is appreciated,
Thanks.
Extra note: using
Currently, I'm sending the data to the game in JSON. I understand there is a json_decode() function in GML which will put my data into a ds_map, however I'm not sure as to how exactly it'l handle my array of data due to its format...
here's and example of my array (in JSON format):
{"user_gold":{"FieldData":{"Data":[{"Data_ID":"37","Content":"115","Related_ID":"5","SubFields":{"1":{"user_items":{"FieldData":{"Data":[{"Data_ID":"38","Content":"Sword of Goliath","Related_ID":"5","SubFields":["NULL"]}]}}}}},{"Data_ID":"35","Content":"115","Related_ID":"1","SubFields":{"1":{"user_items":{"FieldData":{"Data":[{"Data_ID":"36","Content":"Cool Item Name","Related_ID":"1","SubFields":["NULL"]}]}}}}}]}}}and here it is in an array (through PHP):
Array
(
[user_gold] => Array
(
[FieldData] => Array
(
[Data] => Array
(
[0] => Array
(
[Data_ID] => 37
[Content] => 115
[Related_ID] => 5
[SubFields] => Array
(
[1] => Array
(
[user_items] => Array
(
[FieldData] => Array
(
[Data] => Array
(
[0] => Array
(
[Data_ID] => 38
[Content] => Sword of Goliath
[Related_ID] => 5
[SubFields] => Array
(
[0] => NULL
)
)
)
)
)
)
)
)
[1] => Array
(
[Data_ID] => 35
[Content] => 115
[Related_ID] => 1
[SubFields] => Array
(
[1] => Array
(
[user_items] => Array
(
[FieldData] => Array
(
[Data] => Array
(
[0] => Array
(
[Data_ID] => 36
[Content] => Cool Item Name
[Related_ID] => 1
[SubFields] => Array
(
[0] => NULL
)
)
)
)
)
)
)
)
)
)
)
)
This is all just test data at the moment, and all the data will change constantly (including array names like user_gold). I'd prefer NOT to alter the array structure itself. If the json_decode() function is sufficient, could someone explain how I might access the values in the array using ds_map_find_value()? (e.g, let's say I want to get [user_gold][FieldData][Data][0][Content]).
Any help is appreciated,
Thanks.
Extra note: using
ds_map_find_value(map,"user_gold")returns "2" :/
CrySet - Hosting over 110 QUALITY games
20 June 2012 - 11:10 AM
CRYSET GAMES
Hey,
A few of you might have already heard of us, but for those who haven't, CrySet games is a small game hosting site, which features ad-based revenue for it's developers, comments (from our growing userbase) for feedback and also hosting space for your game. We also have a 'support' forum where you can interact with the other CrySet users here: http://cryset.com/forum/
Recently we revamped the site and added a few new features (some of which you'll see below). Before I go into what the new site has to offer, I'd like to let everyone know that their old links ( http://cryset.com/home/p/* ) will still work for approximately 1 month, after that any links referring to the old site will be redirected (relevantly, i.e. any game links will redirect to the same games new link).
The new site features a range of differences from the old one, but the general purpose of the site has remained the same. You'll have a fully revamped dashboard where everything can be managed quickly and easily, the ability to upload screenshots directly (wasn't available before), access to the new API (coming later this year), PlayData(BETA), and much more. Here's a pretty image to sum up a few things:
Click here to visit CrySet

As some of you may or may not know, I recently released an ad campaign system on CrySet. Well, I've improved on that system and added in-game advertising. Developers can now download an extension (or demo project) and use 2 simple functions to display ads within their game. You'll earn the same revenue as games do now, with the only difference being that you can potentially earn a lot more from using in-game ads.
You're allowed to rotate between ads every 3 minutes (earning more revenue everytime the ad rotates). This system isn't just limited to games on CrySet either, your games can earn revenue from any site (as long as the ad is displayed).
The ads are displayed using 1 function, and removed with another. You can also position the ads using x/y coordinates.
It's simple to use, and the ads are only 320x50, so they don't take up much room.
For an example, and links to download the extension/project, click here
For information on how to advertise within a game, click here
Loading an external image
09 January 2012 - 06:25 PM
I'm trying to load an image externally. I'm using sprite_add and the image is located here: http://img847.images...studiologo2.png (I'm trying to download from that web address). It seems to get the width and height of the sprite correct, but just draws a black box... This is the code (argument2 is equal to the address I posted above...):
I'm drawing an animated loading sprite until the web event "image loaded" is triggered, at which point I switch to drawing the new sprite... Any particular reason it's just drawing a black box and not the sprite (despite it getting the dimensions correct)?
notif.orig_sprite = sprite_add(argument2,1,false,false,0,0);
I'm drawing an animated loading sprite until the web event "image loaded" is triggered, at which point I switch to drawing the new sprite... Any particular reason it's just drawing a black box and not the sprite (despite it getting the dimensions correct)?
- Game Maker Community
- → Viewing Profile: Topics: beatson
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content

