Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / [SOLVED] Deprecated Commands List

Author
Message
Zaxxan
Developer
User Offline
Joined: 17th Nov 2020
Location: UK
Posted: 20th Dec 2020 10:16
Since starting to use AppGameKit I keep finding that certain commands have been deprecated. Is there a definitive list of these commands anywhere so that I can avoid using them?

The author of this post has marked a post as an answer.

Go to answer

Virtual Nomad
Moderator
15
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 20th Dec 2020 21:45 Edited at: 20th Dec 2020 21:53
Searching Whats New (build notes) in the Help Files for "deprecated":

Build 2017.05.15


Build 2.0.20 (29th Jun 2016)
  • Old Music commands are now deprecated in favour of the OGG music commands
  • > Note that part reading: "On HTML5 the old music commands have better performance than the newer commands."


Build 2.0.17 (24th Feb 2016)


note that "Deprecated" doesn't mean they absolutely won't work but are no longer supported or guaranteed to do so. IE, best to avoid them but, personally, i've had no issue with OGG vs HTML, for example, tho i don't do heavy testing on multiple devices, browsers, etc..

hope that helps.
[My Itch.io Home] [Now Playing]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=AGK] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[Google Forum Search]
Loktofeit
AGK Developer
12
Years of Service
User Offline
Joined: 21st Jan 2009
Location: Sarasota, FL
Posted: 21st Dec 2020 01:42

GetDeviceName( ) is now deprecated. It has been replaced with GetDeviceBaseName( )
Loktofeit
AGK Developer
12
Years of Service
User Offline
Joined: 21st Jan 2009
Location: Sarasota, FL
Posted: 21st Dec 2020 01:44
This post has been marked by the post author as the answer.
From Google:


Music
The old music commands have been deprecated in favour of the new OGG music commands (except on HTML5). The new commands require files compressed ...

IsCapturingImage
This function has been deprecated, use SetDeviceCameraToImage instead. Returns 1 if AppGameKit is currently displaying a camera feed and waiting for the user to ...

GetCapturedImage
Aug 6, 2013 — This function has been deprecated, use SetDeviceCameraToImage instead. Returns the ID of a newly captured image created using ...

ShowImageCaptureScreen
Jun 17, 2013 — This function has been deprecated, use SetDeviceCameraToImage instead. Presents the user with an option to take a photo with the device ...

CreateFullscreenAdvert
This command is deprecated, you should use ShowFullscreenAdvertAdMob, ShowFullscreenAdvertChartboost, or ShowFullscreenAdvertAmazon instead.

SetRawWritePath
This command is now deprecated. The preferred method of accessing files outside of the usual write folder is to use the OpenRawFolder commands and "raw:" ...

SetCurrentDir
SetCurrentDir. Description. This command is deprecated and has been replaced with SetFolder. Definition. integer SetCurrentDir( szPath ).

SetTransitionMode
SetTransitionMode. Description. This command is deprecated, orientation transitions are now controlled by the device. Definition. SetTransitionMode( mode ).

SetIntendedDeviceSize
This command has been deprecated and you should use LoadImageResized to adjust image sizes depending on the device resolution, you can check the ...
Zaxxan
Developer
User Offline
Joined: 17th Nov 2020
Location: UK
Posted: 21st Dec 2020 08:52
Hi, thanks for all if the replies, it doesn't look like too many have been deprecated then.
PSY
Valued Member
5
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 24th Dec 2020 15:10
All the SetSort....() commands are deprecated, too.


PSY LABS Games
Coders don't die, they just gosub without return
Virtual Nomad
Moderator
15
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 28th Sep 2021 07:08 Edited at: 28th Sep 2021 07:08
EnableClearColor() deprecated in Studio (only)
Studio Help wrote: "

Description
This command is deprecated, you can choose to clear by using ClearScreen or not.

If you wish to maintain the contents of a previous rendered image then you should render to a new image and apply the previously rendered image to a quad to draw it as a background. You can then swap the images in the next frame to continuously render the previous frame as a background to the current frame."
[My Itch.io Home] [AGK on Itch.io]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=agk] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[AGK Showcase][Google Forum Search]

Login to post a reply

Server time is: 2021-10-16 23:07:00
Your offset time is: 2021-10-16 23:07:00