Detailed Video Tutorial - How to build a side scroller game

Intended for complete beginners or people have programmed a small amount, this detailed 2 hr series goes from start to finish on building a complete game using:

  • Physics (gravity, forces, collisions)
  • Animation (how to use sprites)
  • Responding to events with functions (touch, enterFrame, collisions)
  • Creating your own functions
  • How to use if statements
  • Transitions
  • Timer events
  • Parallax Scrolling
  • Math (using trig)
  • How to use the Storyboard API

I think you’ll find it’s one of the most complete video tutorials on creating a game using the Corona SDK that is currently available.

The full 14 part series begins here:

http://www.youtube.com/watch?v=0GtUxdSeWzk&feature=youtu.be
[import]uid: 37765 topic_id: 34360 reply_id: 334360[/import]

Very nice looking tutorials. I’ll see if we can get them added to our tutorial section. [import]uid: 199310 topic_id: 34360 reply_id: 136605[/import]

mf - This is great! Thanks for making these. We will definitely post to our tutorial section.

I’m curious as to what spurred you to make these. Have you published any apps with Corona?

[import]uid: 10668 topic_id: 34360 reply_id: 136615[/import]

As a beginner, I say thank you! [import]uid: 132483 topic_id: 34360 reply_id: 136625[/import]

Very nice looking tutorials. I’ll see if we can get them added to our tutorial section. [import]uid: 199310 topic_id: 34360 reply_id: 136605[/import]

mf - This is great! Thanks for making these. We will definitely post to our tutorial section.

I’m curious as to what spurred you to make these. Have you published any apps with Corona?

[import]uid: 10668 topic_id: 34360 reply_id: 136615[/import]

As a beginner, I say thank you! [import]uid: 132483 topic_id: 34360 reply_id: 136625[/import]

Hi David and Rob,

Thanks for the kind words - means a lot! I have never published an app. I used to teach computing at high school and used Corona to teach programming. The kids loved it and so this game here is the base of what we used. I’m studying pre-med now to become a doctor but have been meaning to create this series for ages. I have a couple more games that I will hopefully create videos for seeing as I don’t go back to university until mid-Feb…

Thanks,

Mark

[import]uid: 37765 topic_id: 34360 reply_id: 137069[/import]

Hi David and Rob,

Thanks for the kind words - means a lot! I have never published an app. I used to teach computing at high school and used Corona to teach programming. The kids loved it and so this game here is the base of what we used. I’m studying pre-med now to become a doctor but have been meaning to create this series for ages. I have a couple more games that I will hopefully create videos for seeing as I don’t go back to university until mid-Feb…

Thanks,

Mark

[import]uid: 37765 topic_id: 34360 reply_id: 137069[/import]

That’s great Mark. Thanks for doing this.
I’m going to also email you directly. [import]uid: 10668 topic_id: 34360 reply_id: 138238[/import]

Very nice, thanks for sharing!

I’ll be adding that to my big list of tutorials too if you don’t mind :slight_smile: [import]uid: 69826 topic_id: 34360 reply_id: 138258[/import]

That’s great Mark. Thanks for doing this.
I’m going to also email you directly. [import]uid: 10668 topic_id: 34360 reply_id: 138238[/import]

Very nice, thanks for sharing!

I’ll be adding that to my big list of tutorials too if you don’t mind :slight_smile: [import]uid: 69826 topic_id: 34360 reply_id: 138258[/import]

This is a great tutorial! Thank you very much for putting it together.

Is this still an effective way to implement a side scroller or have new ways been developed since this posting in 2012?

This is a great tutorial! Thank you very much for putting it together.

Is this still an effective way to implement a side scroller or have new ways been developed since this posting in 2012?

Hey. Can you do something to destroy the enemies? I created bullets, shoots and my ship already shoot. 

I’m use this tutorial but, when the bullet collide with enemie I have some errors and the game doesn’t works.

I would like you do something based on this tutorial.

Thanks!

The problem was presented on 250 line.

function moveMines(self,event)

  if self.x < -50 then

     self.x = 500

     self.y = math.random(90,220)

self.speed = math.random(2,6)

self.amp = math.random(20,100) – Pesquisar sobre amp e 

self.angle = math.random(1,360) – sobre angle…

–print(“IF”…self.x…“y:”…self.y)

  else

     self.x = self.x - self.speed 

self.angle = self.angle + .1

self.y = self.amp * math.sin(self.angle) + self.initY

–print(“ELSE”…self.x…“y:”…self.y)

  end

  

end

Here are my collison function

function explodeMines (event)

  local explodeMinesSound = audio.loadSound(“dkmedicExplosion.mp3”)

  audio.setVolume(0.03)

  explosion.x = mine1.x

  explosion.y = mine1.y

  mine1.isVisible = false

  explosion.isVisible = true

  explosion:play()

  mine1:removeSelf()

  --event.object.destroy()

  audio.play(explodeMinesSound)

end

Thanks in advance!

Hey. Can you do something to destroy the enemies? I created bullets, shoots and my ship already shoot. 

I’m use this tutorial but, when the bullet collide with enemie I have some errors and the game doesn’t works.

I would like you do something based on this tutorial.

Thanks!

The problem was presented on 250 line.

function moveMines(self,event)

  if self.x < -50 then

     self.x = 500

     self.y = math.random(90,220)

self.speed = math.random(2,6)

self.amp = math.random(20,100) – Pesquisar sobre amp e 

self.angle = math.random(1,360) – sobre angle…

–print(“IF”…self.x…“y:”…self.y)

  else

     self.x = self.x - self.speed 

self.angle = self.angle + .1

self.y = self.amp * math.sin(self.angle) + self.initY

–print(“ELSE”…self.x…“y:”…self.y)

  end

  

end

Here are my collison function

function explodeMines (event)

  local explodeMinesSound = audio.loadSound(“dkmedicExplosion.mp3”)

  audio.setVolume(0.03)

  explosion.x = mine1.x

  explosion.y = mine1.y

  mine1.isVisible = false

  explosion.isVisible = true

  explosion:play()

  mine1:removeSelf()

  --event.object.destroy()

  audio.play(explodeMinesSound)

end

Thanks in advance!