Topic:   Imagefile Glitch   (Read 12418 times)


0 Members and 1 Guest are viewing this topic.

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Imagefile Glitch
« on: July 07, 2008, 04:03:57 PM »
Well I just noticed that sometimes when you tell a lot of imagefile to appear the first one doesn't always appear.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Imagefile Glitch
« Reply #1 on: July 07, 2008, 06:21:49 PM »
Quote
Well I just noticed that sometimes when you tell a lot of imagefile to appear the first one doesn't always appear.

I'll check, but I think you're better off using sprites. I used to have a GETPICT command that I never really tested, so I never made it an official part of the language. It might still be in there. I'll have to check on that and let you know.

EDIT: The command is PICT with no card number. It will make whatever is showing on the card be the current card picture, so you can fake having a lot of sprites if you don't need them to move once you show them.

NOTE: This hasn't been fully tested, so I don't know what happens when the player saves the game or when you play movies over it or whatever.

' draw a sprite
SPRITE 1 10 10 spritePicture.jpg

' make it part of the card picture
PICT

' now you can use sprite 1 again
' and it will look like another sprite
SPRITE 1 50 100 anotherSprite.jpg


« Last Edit: July 07, 2008, 06:30:34 PM by AlStaffieri »

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Imagefile Glitch
« Reply #2 on: July 07, 2008, 06:51:58 PM »
I can't use sprites if I am using 20+ IMAGEFILES.
EDIT: If I did use this PICT command would their be a way to revert back to the original card picture.
« Last Edit: July 07, 2008, 06:53:07 PM by Tireas_Dragon »
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Imagefile Glitch
« Reply #3 on: July 08, 2008, 08:18:17 AM »
Quote
If I did use this PICT command would their be a way to revert back to the original card picture.

Both of these should work.

REFRESH PICT
 or
PICT cardnumber

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Imagefile Glitch
« Reply #4 on: July 08, 2008, 08:27:38 AM »
Thanks.
EDIT: Well I tried it out. It did not work so well.
« Last Edit: July 08, 2008, 08:32:38 AM by Tireas_Dragon »
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Imagefile Glitch
« Reply #5 on: July 08, 2008, 01:15:55 PM »
I love hidden commands! I gotta test this one out...
I survived the spammage of 2007

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Imagefile Glitch
« Reply #6 on: July 25, 2008, 06:07:01 PM »
Wow, with this command we could load scenery tiles into place to form maps instead of taking up room in a GM app with picture windows. The sprites could be loaded in sections of 20 and then flattened with the PICT command.

I've just tried the command though and it doesn't always work correctly if preformed in succession. (multiple times on the same card) Are you gonna add this command to 4.0 Al?
I survived the spammage of 2007