Camera Scroller Extension

daverave1212

  • Posts: 16


Camera Scroller
Works on iOS, Android, Flash, Windows and Mac.

Hello. This is my first extension and I hope it can be useful. Feedback is greatly appreciated.
Following the template:

Q: What does this extension do?
A: It allows for 'camera dragging' like you do with mobile pages on your phone. It is primarily intended for mobile apps, but should work on any platform. It has a smoothing effect and should feel natural to use.

Q: Why is it useful?
A: I haven't seen a similar extension and after I made it, it seemed quite nice to me.

Features
- Camera scrolling by drag-and-dropping the screen
- Camera smoothing (it keeps moving for a bit after you finish scrolling
- Intuitive usage




Get it

- Download this Extension
- Sample Project

(How to Install and Update an Extension)


Documentation

To use camera scrolling, you first need to Initialize it (only once per scene!).

Initialize
Use this block to start the camera scrolling.
After using this block, you are good to go! Camera scrolling should be enabled.
You can choose which axis you want to scroll, Horizontally, Vertically, Both or none (you can change it later).
You can also choose if you want smoothing or not (you can change it later).

Disable/Enable Camera Drag
Use these blocks to enable or disable camera drag, on any axis.
NOTE: Do not use Initialize more than once per scene! If you want to enable or disable scrolling on any axis, use these blocks.

Disable/Enable Camera Smoothing
Enable or disable camera drag smoothing with this block. I think it's pretty straight forward.

Version History

Uploaded

squeeb

  • Posts: 1464
Awesome.. great job.. ill test it when i can

LIBERADO

  • *
  • Posts: 2637
Nice extension and nice documentation. Thank you very much.

Downloaded and installed.

I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

daverave1212

  • Posts: 16
@squeeb Definitely test it and give some feedback! If you find any bug, post it here!

@LIBERADO Thanks! I forgot to add an icon, I will add it later.

Licam

  • *
  • Posts: 1
Seems awesome does it support 4.0 ?

soereide

  • *
  • Posts: 25
Seems awesome does it support 4.0 ?
Works for me.
It's a really awesome extension :)
However, one problem I have when testing on Android, is that the camera jumps around when using two fingers on the screen. So if you have one finger on the screen and then press a random place with another, the camera will instantly jump to a different location.
Other than that, I really like how the scrolling and camera smoothing feels.

Hell O

  • Posts: 10
Thanks for this extension it's really awesome! However no drawing move, even those attached to actors

[EDIT] I used Y (On Screen) instead of Y-Center of Self on my actors and it works

« Last Edit: February 23, 2019, 02:29:26 am by Hell O »

ki123

  • Posts: 2
Thank you very much for the great work.
I have a question regarding drag and drop actors. The thing is that when I drag an actor, the scene scrolls along with the movement.
It would be great if you have an idea how to keep the scene still when dragging an actor.

squeeb

  • Posts: 1464
Make a boolean attribute named is clicked or something like that...
Make true when actor is clicked.. the if clicked is false.. scroll camera

ki123

  • Posts: 2
Thank you for the reply.
I'm sorry for the stupid questions, but where does this logic go? Inside the scene event?
I also have no idea which blocks to utilise to get the value "actor is clicked". Can it be set to a group of actors? I have many actors that need to be dragged and dropped in the scene

squeeb

  • Posts: 1464
No worries!
I reread this.. i made a mistake.. i didnt realize this had enable and disable...


Scene created event... set up the scrolling like normal... and enable


In scene mouse clicked  on actor event and then select the actor.. or if you are creating actors not placing them in scene editor...use the for actor of type block and put the
Disable scroll block


Scene mouse was released event..
enable scroll block