Game Development Community

Movies, cutscenes...

by Dan Pereira · in iTorque 2D · 05/11/2009 (5:41 pm) · 4 replies

If you've played the newish motocross game for the iPhone, you'll know what I'm talking about here. I'd like to play a movie in the iPhone player between levels of my game. I have some ideas how to do this with iTGB, but before I go digging through source I'd like to learn if anyone else has a solution that works.

Thanks,
Dan

#1
05/28/2009 (1:11 pm)
I would like to revive this topic in the hopes that a kind soul will help me figure out how to tie these two things together.

Below is a link to official sample code from Apple's Developer site that will play a video file on the iPhone.

What I would like to do is be able to simply call it with a single line or block of code in TorqueScript, much like doDeviceVibrate(); (which by the way, is brilliant and fun to use in the game!)

https://developer.apple.com/iphone/library/samplecode/MoviePlayer_iPhone/index.html

I'm no expert in Objective-C nor Xcode, but if you tell me where to stick these files or how to integrate it into the Torque source code, then compile it with my game, I and probably many others here would be so appreciative.

Thanks in advance.
#2
05/29/2009 (10:42 am)
I got this partially working the weekend before I left for my vacation. I had a way of triggering a movie during an iTGB game session, but did not clean it up for proper closing.

This is going into iTGB 1.3, but I might release it ahead of time if it flows nicely with iTGB 1.2.

I'm posting a blog on Monday that is specifically geared toward iTorque, including a road map and plans for iTGB.
#3
05/29/2009 (12:11 pm)
Great news! If you can post any source code changes so that I can release my game with video in the next couple of weeks before having to wait for 1.3, that would be so awesome!!!
#4
05/29/2009 (3:03 pm)
Awesome Michael I am looking forward to the roadmap.