Page 1 of 2

How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 1:17 am
by Freddy
Ive been wondering this for a while, so if anyone knows, it would be really helpful. :)

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 3:59 am
by Game A Gogo
go look in the demo page and search for "smash view" or something

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 1:09 pm
by Freddy
I saw it, but I cant make any sense out of the code. (I think its because its all entangled with the distance of the player from the enemy)
All I want to have is 2 modes; normal, and zoomed out.

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 2:33 pm
by speckford123
woo, i never thought id see a mention of my "smash view" in another post!
well ill try and make something, but remember, if you can get by without the zoom, you probably should. it basicly ads alot of extra code

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 2:50 pm
by Freddy
speckford123 wrote:woo, i never thought id see a mention of my "smash view" in another post!
well ill try and make something, but remember, if you can get by without the zoom, you probably should. it basicly ads alot of extra code

Lol, yeah, well it was after all the first demo that had a zoom in GE. How did you figure it out?
But what do you mean by "extra code", that doesnt sound too good. :|

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 3:19 pm
by speckford123
what i meant by extra code is that for my method with the canvas actor you would need code for every actor in the game, and clones dont work, only seperate actors im pretty sure, but i can still make a demo if you like

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 3:37 pm
by Freddy
That would be great! (Ill give you a point or two) I just hope that its not too much coding. :wink:
You see, Im making a pacman game, and I made the animations for my pacman and ghosts a little big. So now, the maze is going to go off screen, and I would like it if everything could be squeezed in.
Anyway, even if I decide not to use the zoom out, Ill be glad to know it.

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 7:41 pm
by speckford123
well ill make a simple demo and put it up here, it might be different from what your doing but should be good for you to make your own code
besides if the pictures are too big......shrink them :wink:

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 8:47 pm
by Freddy
speckford123 wrote:besides if the pictures are too big......shrink them :wink:

I would, but there are already so many pics, and ms pain cant shrink shrink without messing them up, is there something else that I can shrink them with?

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 8:49 pm
by Kalladdolf
use MS Powerpoint.
it's the best shrinking software ever =D
or MS word
or MS publisher
or even MS Excel,
but goodness sake, those programs are exzellent! :mrgreen:

Re: How do you make the view zoom out?

PostPosted: Sun Mar 30, 2008 9:42 pm
by Freddy
Allright, I was able to make everything work using the full screen option. It even looks a little better. At this point it's fine, but I would like it if I didnt have to run it in fullscreen mode, so I will still benefit from the demo.
:)
Btw, thanks for the advice anyway. :D

Re: How do you make the view zoom out?

PostPosted: Mon Mar 31, 2008 9:39 pm
by Game A Gogo
if your images aren't bmp in ms paint, and you use the shrink function thing (image=>Strech/Skew) it will resize them a bit smoothly

Re: How do you make the view zoom out?

PostPosted: Wed Apr 02, 2008 12:16 am
by speckford123
ok, it took a while cause i was busy, but here it is :D
i hope that helps!

arrows to move and jump, spacebar to zoom out/in

Re: How do you make the view zoom out?

PostPosted: Fri Aug 22, 2008 4:02 pm
by MrJolteon
Hey, Freddy? You're making a pacman game? I can give you all my pacman graphics. They're made by me.

Re: How do you make the view zoom out?

PostPosted: Sat Aug 23, 2008 11:46 pm
by feral
speckford123 wrote:ok, it took a while cause i was busy, but here it is :D
i hope that helps!


this is very cool, speckford, I am so glad mr jolteon bumped this, because, I must of missed it the first time it was posted.. :?

very well done.. :)

Just a question tho, is it OK ? if I take this a little further, and code it up as some multipurpose easy to use math/zoom functions for everyone to use ?

PS: I know you already got a point for helping freddy - but I think it deserves a point for a general all round nice bit of coding :) +1 from me. and this should probably be moved or redone for the demo section (I think)