Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

Allow to set any movement to the camera #484

Closed
christopho opened this issue Apr 23, 2014 · 4 comments
Closed

Allow to set any movement to the camera #484

christopho opened this issue Apr 23, 2014 · 4 comments
Assignees
Milestone

Comments

@christopho
Copy link
Collaborator

For now, the only camera movement is moving toward a point and getting back to the hero. This is not flexible and makes it hard to do nice cutscenes.
It would be better to accept any movement object for the camera.

@christopho christopho added this to the v1.3 milestone Apr 23, 2014
@christopho christopho self-assigned this Apr 23, 2014
@wrightmat
Copy link
Contributor

This could work by changing the x, y parameters to object_to_move (which could optionally be an x,y table like with movement:start) and adding a return true/false in the callback to indicate whether to return to the hero or not. If nothing is declared it could default to return true and go back to the hero (thereby not breaking any previous code), but if you declare return false the camera would stay at that point (or follow it in the case of a moving object) until move_camera is called again.

@ekureina
Copy link
Contributor

Absolutely. Also, there could also be a function for movement in a polygon and/or an arc.

@christopho christopho modified the milestones: v1.3, v1.4 Aug 13, 2014
@christopho christopho modified the milestones: v1.4, v1.5 Jan 29, 2015
@christopho christopho removed this from the v1.5 milestone Jul 13, 2015
@christopho christopho added this to the v1.5 milestone Aug 18, 2015
@christopho
Copy link
Collaborator Author

The camera will simply be an entity in 1.5. This gives the whole entity API including movements and collisions, for free.

@christopho christopho mentioned this issue Aug 31, 2015
11 tasks
@christopho
Copy link
Collaborator Author

Done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants