Jump to content


Photo

D&D Automatic Side Scroller


  • Please log in to reply
8 replies to this topic

#1 Minishcactus

Minishcactus

    GMC Member

  • New Member
  • 55 posts
  • Version:Mac

Posted 19 April 2012 - 06:45 PM

So, I'm trying to find a tutorial on how to make and automatic side scrolling game -- where the screen doesn't wait for you (I don't know exactly what it's called?) so if you're too slow you can fall behind and you die (you go off screen)

The problem is, most of the tutorials I'm finding are either using GM code, which I don't understand really...

or they're side scrolling games where you're walking and you can go revisit earlier sections of the level...

Help would be much appreciated, thank you! :)
  • 0

#2 jo-thijs

jo-thijs

    GMC Member

  • GMC Member
  • 1464 posts
  • Version:GM8.1

Posted 19 April 2012 - 07:13 PM

try this in the begin step event of any object:
set the variable view_xview relatif to a number
and in the outside room event of the player:
check if variable x is smaller than view_xview
if so set variable x to view_xview
else check if variable x is greater than view_xview+view_wview
if so set variable x to view_xview+view_wview
  • 0

#3 Futhark

Futhark

  • GMC Member
  • 682 posts
  • Version:GM8.1

Posted 19 April 2012 - 07:38 PM

Also, don't forget to check out the second tutorial included with GM.

In GM, it's found at HELP -> TUTORIALS -> "2 Scrolling Shooters"

If you have any questions on that tutorial, then ask away.

EDIT: Oh, I see you're using a Mac. I can only assume the tutorials are kept in the same place, as on the PC.

Edited by Futhark, 19 April 2012 - 07:40 PM.

  • 0

#4 PetzI

PetzI

    GMC Member

  • GMC Member
  • 1026 posts
  • Version:GM8.1

Posted 19 April 2012 - 07:54 PM

Also, don't forget to check out the second tutorial included with GM.

In GM, it's found at HELP -> TUTORIALS -> "2 Scrolling Shooters"

If you have any questions on that tutorial, then ask away.

EDIT: Oh, I see you're using a Mac. I can only assume the tutorials are kept in the same place, as on the PC.


Here's a link for to that tutorial for your lazy convenience: http://sandbox.yoyog.../make/tutorials
  • 0

#5 NukeTheCat

NukeTheCat

    GMC Member

  • GMC Member
  • 460 posts
  • Version:GM8.1

Posted 19 April 2012 - 08:08 PM

Ah, I think this is what you looking for (if it works)
please note that the effects start imediately

your obj_controller step
:GM072: type this in the box 'variable' = view_xview -- in the box 'value' = 5 (or any other number for how fast you want) -- in the relative checkbox = checked - true
  • 0

#6 Minishcactus

Minishcactus

    GMC Member

  • New Member
  • 55 posts
  • Version:Mac

Posted 19 April 2012 - 08:54 PM

Also, don't forget to check out the second tutorial included with GM.

In GM, it's found at HELP -> TUTORIALS -> "2 Scrolling Shooters"

If you have any questions on that tutorial, then ask away.

EDIT: Oh, I see you're using a Mac. I can only assume the tutorials are kept in the same place, as on the PC.


Thanks everyone - I'll try some of these out. I suppose I should have specified that the tutorials won't work with my version of game maker (and for some reason, I can't update?) -- thus the game maker tutorials are a bit useless besides the pdf. But thank you, petzl, for indulging my laziness. I appreciate it. Anyway, Jim07, I'll try that and see if it works! :) Thanks. I'll post back here with more questions if I have any. :)
  • 0

#7 NukeTheCat

NukeTheCat

    GMC Member

  • GMC Member
  • 460 posts
  • Version:GM8.1

Posted 19 April 2012 - 09:36 PM

ITS NOT JIM!
IT JLM07 WITH A 'L'!
  • 0

#8 Minishcactus

Minishcactus

    GMC Member

  • New Member
  • 55 posts
  • Version:Mac

Posted 19 April 2012 - 09:46 PM

Woops! Sorry - wasn't paying attention ;u;
  • 0

#9 Minishcactus

Minishcactus

    GMC Member

  • New Member
  • 55 posts
  • Version:Mac

Posted 19 April 2012 - 10:30 PM

OKAY! So- update! I'm reading the PDF tutorial for the side scrolling shooter - and I'm stuck on the shooting part. I've done everything the tutorial says - but for some reason I cannot see my bullets or anything? :/
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users