I have been searching on this forum & all over the Net (including YouTube) but I am unable to find any examples to use Camera Tweening. There are no Screen Tweening examples in the Game Creators documentation for commands!
I have managed to get the basic sprite demo of Tweening (in the original directory with the AGK) working OK & I have tried substituting the main Sprite Tweening commands ( as shown below that run OK) for the Screen ones but nothing happens on the screen.
I can work around this problem in my game ( by manually altering the screen coordinates) but I would still like to know (and experiment ) with the Screen Tweening commands.
The commands below are just those that I have substituted for the Screen ones but the code is not the whole code as I only stops working when I substitute the Screen Tweening commands.
// Working Sprite Tween Commands
TweenID=CreateTweenSprite(3)
SetTweenSpriteX(TweenID,0,80,-1)
PlayTweenSprite(TweenID,SpriteID,0)
// Main Loop
do
UpdateAllTweens(GetFrameTime())
Sync()
loop
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
// NONE working Screen Tween Commands
TweenID=CreateTweenCamera(3)
CreateTweenCamera(TweenID,3)
SetTweenCameraX(TweenID,0,80,-1)
PlayTweenCamera(TweenID,1,0)
// Main Loop
do
UpdateTweenCamera(TweenID,1,GetFrameTime())
Sync()
loop
Amazing creations start with a Fuzzy Vision
Dave - Creator, Developer and Visonary
Fuzzy Visions