Forum rules - please read before posting.

Dev_Martas

About

Username
Dev_Martas
Joined
Visits
652
Last Active
Roles
Member

Comments

  • On the desktop, all seems to work properly! Also, the camera snaps to the player at the start of the scene :-) On Android, however, the pinch Zoom seems to be still causing problems. The camera sometimes just jumps across the place when you try to …
  • Yes, all of them are dragable and zoomable. I am using two, because I have a horizontally long scene with two entry points, each one on the opposite side. Each camera has a different Position set so when you enter the scene from the particular point…
  • (Quote) Just to be sure: it has a public field where I need to put the camera in Editor. So it does not matter which one I put there, even though a different camera may be used during gameplay? The zooming out (3) is not leaving the borders of the …
  • These scripts work, thank you! I just have a few details regarding the Zoom I'd need help with: * I have multiple cameras on several scenes. How to adjust the ClickUpToMove to accommodate all of them? * Is it possible to zoom on the current specifi…
  • Works on Desktop! More in the other thread https://adventurecreator.org/forum/discussion/14517/pinch-zoom-and-panning-on-mobiles#latest
  • It works on desktop with Mouse and Keyboard Input! :-) On Android phone seems to work properly only when the Mouse and Keyboard are set. However, pinch zoom breaks the camera when used. When I build the game with Touch input, the player still follo…
  • My mistake, trying on an Android device now but it is also not good. The character is moving this time, however, panning does not work, when I tap somewhere while the character is moving, it twitches (like the movement command was reset, it does not…
  • The camera should by default follow the player. But at any time, you can drag it - then it will stop following the player and stay where you leave it. It will reset back to default and follow the player again only after you click/tap somewhere on th…
  • I tried to fix the camera switching script, but it seemed to have caused more issues and the standard camera didn't follow the player anyway. Your suggestion of a separate script works and is more elegant :-) Unfortunately, the way this script work…
  • Sure. Currently, I am using Cmera2DDrag with this Zoom script attached to it: using UnityEngine;public class PanZoom : MonoBehaviour{ Vector3 touchStart; public AC._Camera gameCamera; public float zoomOutMin = 1; private float maxOrthog…
  • I tried the script from February 6 on the mobile version while setting mouse and keyboard input. It works nicely, however, I am also using pinch zoom and once I attempt to zoom in, the game goes bonkers and jumps outside of the scene into black. Tha…
  • The other approach would be to have two separate cameras - one that's a regular GameCamera2D that follows the player, another that's a GameCamera2DDrag with your attached script, and then switch between them when custom input is detected/lost. You c…
  • The character does not move or react at all. I tried to set mouse and keyboard and touch screen and the result is still the same.
  • It is giving me compiler error CS0034 regarding the operator != not being specific on Vector2 and 3 on this line: if (button == 0 && Input.touchCount > 0 && Input.GetTouch(0).position != startPosition)
  • So unfortunately it only works when using the mouse. But it doesn't work on mobile while using the touchscreen - which is actually where I will be needing it the most. Can you please help?
  • Works great so far, thanks! Will report how it works with the menus and inventory once i get to that bit :-)
  • *2) between mouse down/tap down AND mouse up/tap release, there was 0 drag detected
  • Solved! Found this script in the forum, works like a charm!: https://adventure-creator.fandom.com/wiki/Frame-flipping_for_Sprites_Unity_Complex_characters
  • Mirroring the animation in the Animator is indeed the way to go, but you need to use the same animation clip in two separate animation boxes - one with mirroring, one without - rather than dynamically changing the mirror checkbox each time it's run.…
  • I found another problem. The 2D Drag Camera cannot be dragged all the way on the Y axis in either way, it works properly only on the X axis. There seems to be some limit on how far it can be dragged on the Y, but I just cannot find what could be cau…
Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.