Zooming and Rotating camera

yoplalala

  • *
  • Posts: 1501
Awesome Letmethink!

SadiQ

  • Posts: 1776
Impressive. It lags quite a bit but still. All that was achieved with the image API?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Wesxdz

  • Posts: 80
It would be nice to see the debug drawing. Also, will enemy actors zoom and position themselves correctly (even offscreen)?

letmethink

  • *
  • Posts: 2547
None of it is done using image API now. It should perform exactly the same in every way as a normal project currently.

It runs faster on desktop currently I believe.
~Letmethink

letmethink

  • *
  • Posts: 2547
I can imagine this being useful for something like this (wasd to control one player and arrow keys for the other):
<a href="http://static.stencyl.com/games/33903-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/33903-0.swf</a>

The actual camera movement is a bit jerky currently but I can probably sort that out.
~Letmethink


Wesxdz

  • Posts: 80
This is really neat.  I've been making something similar with the Image API, but I imagine camera zooming is the better route. Would you consider posting this to Stencylforge or letting me look through the code? I'm mostly interested in the camera zooming aspect with single player and co-op.

isaacnite

  • Posts: 31
Did you ever release this? I've been trying to figure out zooming for ages now.

knowme215

  • Posts: 6
This is pretty awesome. I have been curios if this was possible in stencyl. Now that I see it is, it would be great to get an idea of how this works. I would liek to figure out how to move the camera independently. Could you use a dummy actor like a null object and scale that somehow? Maybe trigger an event that zooms your camera in and out during gameplay?

PhaserRave

  • *
  • Posts: 81
How are you guys doing this?
"I refuse to answer that question on the grounds that I don't know the answer." -Zaphod Beeblebrox

airman4

  • Posts: 859
I hope we gonna get his zooming code one day

Majora64

  • *
  • Posts: 518
Been seeing a steady increase in requests for the ability to mess with the camera . Is this something that can be put into an extension or implemented into Stencyl?

Also, is there a way to pair this with mobile settings? Specifically Sdieters "Multi Touch" behaviors. Perhaps, a way to pinch the camera in and out ? I'm working on an ios platformer and think a behavior like this could benefit the mobile platform.

jsblack

  • Posts: 117
Any update on this code? Can we see what it looks like?

squeeb

  • Posts: 1488
I'll be making a pinch to zoom here soon..  i thought someone had a pretty nice zoom code available for download in the forums somewhere

Macroplasm

  • Posts: 37
Did you ever release this? I've been trying to figure out zooming for ages now.
How are you guys doing this?

I use the code  " engine.setZoom(variable); "
Remove the quotes and replace the "variable" with the the coding of an attribute or some other number by right clicking and selecting the view code option on the variable you want to use and copy paste the data between the ().