Saving Canvas Actors/Loading Canvas actors

Ideas for Game Editor evolution.

Saving Canvas Actors/Loading Canvas actors

Postby willg101 » Mon Sep 26, 2005 8:31 pm

I know asked this before, but I really need this feature for my game.
Maybe we could make a new variable type, "Canvas Variable",
or maybe we could save kind-of like a .dat file is saved, or maybe just save it straight to a .bmp?

Is this going to be too hard, Makslane?

TIA!
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Fuzzy » Mon Sep 26, 2005 9:48 pm

The easiest formats to write to disk are PAM/PGM formats, and for a more mainline, and smaller file, TGA(uncompressed). Tgas can be loaded by GE, so thats the way to go.

If you are not making too large of canvases, just make a array and write to it at the same time as writing to the canvas.
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby willg101 » Tue Sep 27, 2005 8:37 pm

How do you do that?

Thanks for your time!
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby willg101 » Wed Sep 28, 2005 10:27 pm

Also though, how would you load the picture during game play?
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby willg101 » Sat Oct 01, 2005 2:05 am

Any ideas?
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Fuzzy » Sat Oct 01, 2005 10:47 pm

Sorry. I have been away. As it currently stands, you cannot put a path into an actor that points to a graphics file. What you need to do is design a loading function that reads a tga and draws it out onto a canvas actor.

That will allow the player to create his own sprites. likewise, you can write a function that creates a graphics file, but as it stands, there is no readpixel() function in GE. Any graphics drawn within GE should also store its data in an array. From this array you would write to disk.

If this is beyond you, and it shouldnt be, as it is not hard, let me know.
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby willg101 » Sun Oct 02, 2005 1:13 am

Sorry, It's quite beyond me! If you are going to make a demo, do it when you have free time-I don't want a newbie like myself to shew up your time!

TIA
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Game A Gogo » Thu Oct 06, 2005 11:03 pm

willg101 wrote:don't want a newbie like myself

your not a newbie :wink:
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby willg101 » Fri Oct 07, 2005 12:52 am

Hahaha Thanks!! 8)

I am quite a newbie, though. I only know what I've seen done before, that's why I usually ask for examples. I'd definately say that you are farther along than me :!:
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Game A Gogo » Fri Oct 07, 2005 11:24 pm

Not in script :wink:

lol :lol:
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby willg101 » Sat Oct 08, 2005 3:05 am

LOL!

I do believe you were the one who knew it was if(myvar==number), not if(myvar=number)!!!
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron