dMZX Forums: Pause Menu - dMZX Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Pause Menu

#1 User is offline   Switchblade 

  • Let freedom ring with a shotgun blast.
  • PipPipPip
  • Group: Members
  • Posts: 210
  • Joined: 29-December 03
  • Gender:Male
  • Location:here

Posted 08 February 2007 - 04:16 AM

I want to make an overlay pause menu, but I can't get the game to pause. Is there a way to pause the game without presseng enter?

This post has been edited by Switchblade: 08 February 2007 - 04:27 AM

Fuck Jeff Goldbloom, man.
0

#2 User is offline   zombieguy 

  • Veteran Member
  • Group: Banned
  • Posts: 1,939
  • Joined: 29-June 02
  • Gender:Male
  • Location:Australia, Queensland.

Posted 08 February 2007 - 05:46 AM

freezetime 32767
lockplayer

freezetime 0
unlockplayer

It must be in the global robot though, otherwise the robot that's doing the pausing will be frozen and be unable to unpause.
0

#3 User is offline   LogiCow 

  • Holiday cow
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,671
  • Joined: 18-July 02
  • Gender:Male
  • Location:Quebec

Posted 08 February 2007 - 06:29 AM

Save the block from the viewpoint by 80x25 to an MZM, teleport to a board which then displays the MZM, but adds a pause menu on top, teleport back.

Alternatively, you can use the vlayer for that.
0

#4 User is offline   Xx*SaturnineMatthias*xX 

  • Your mother.
  • PipPipPipPip
  • Group: Members
  • Posts: 799
  • Joined: 07-November 06
  • Gender:Male
  • Location:Knaresborough, UK

Posted 08 February 2007 - 04:13 PM

LogiCow, on Feb 8 2007, 06:29 AM, said:

Save the block from the viewpoint by 80x25 to an MZM, teleport to a board which then displays the MZM, but adds a pause menu on top, teleport back.

Alternatively, you can use the vlayer for that.

And if you have an overlay, copy that (copy overlay block) to an MZM, put it somewhere else on the pause menu (like at 0, 25), and reference it as a sprite over the other MZM. Then use the overlay fot the menu.
this is a signature
0

#5 User is offline   T-Bone 

  • Wastelander
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,487
  • Joined: 16-August 02
  • Gender:Male
  • Location:Canada

Posted 08 February 2007 - 07:39 PM

I have a really good pause feature that works perfectly in Super Mario for MZX. But however if you are using built in enemies and such things as that you'd have to stick with the "freezetime" routine. Other than that I'd suggest my feature (which a couple people helped me with). I can give you the code here but keep in mind its only for games that do not use built in enemies like Spitting Tigers and such.
0

#6 User is offline   Val 

  • ring ring zap
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,233
  • Joined: 19-February 04
  • Gender:Female
  • Location:Bartholomew

Posted 08 February 2007 - 08:48 PM

LogiCow, on Feb 8 2007, 01:29 AM, said:

Save the block from the viewpoint by 80x25 to an MZM, teleport to a board which then displays the MZM, but adds a pause menu on top, teleport back.

Alternatively, you can use the vlayer for that.

Yeah Logicow nailed it. That's what I do normally, but it only works if you've got a viewport that always stays the same size.
0

#7 User is offline   zombieguy 

  • Veteran Member
  • Group: Banned
  • Posts: 1,939
  • Joined: 29-June 02
  • Gender:Male
  • Location:Australia, Queensland.

Posted 09 February 2007 - 01:56 AM

T-bone6, on Feb 9 2007, 05:39 AM, said:

But however if you are using built in enemies and such things as that you'd have to stick with the "freezetime" routine.

Freezetime works perfectly fine with absolutely everything (not just built-ins).

Logicow's method is the more professional sounding way to go about it though. :P

This post has been edited by zombieguy: 09 February 2007 - 01:59 AM

0

#8 User is offline   Switchblade 

  • Let freedom ring with a shotgun blast.
  • PipPipPip
  • Group: Members
  • Posts: 210
  • Joined: 29-December 03
  • Gender:Male
  • Location:here

Posted 09 February 2007 - 04:13 AM

Alright, thanks for the help guys
Fuck Jeff Goldbloom, man.
0

#9 User is offline   Micah 

  • Ancient Member
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 5,330
  • Joined: 25-January 03
  • Gender:Male

Posted 09 February 2007 - 06:35 PM

Or, add a subroutine to every robot on the board:

: "#pause"
end


Then when you want to pause:

send "all" "#pause"


Then, when you're done pausing:

send "all" "#return"


Of course, you aren't going to add the pause subroutine to the robot you're using for the pause function, and this robot should also contain any special code for events that happen when you pause (say, a pause menu or something).
♫ ▄ █ ▄ █ ▄ █ ▄
0

#10 User is offline   T-Bone 

  • Wastelander
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,487
  • Joined: 16-August 02
  • Gender:Male
  • Location:Canada

Posted 09 February 2007 - 11:31 PM

That's exactly what i used for SM4MZX lol
0

#11 User is offline   Micah 

  • Ancient Member
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 5,330
  • Joined: 25-January 03
  • Gender:Male

Posted 10 February 2007 - 01:39 AM

It's a lot easier now since you don't have to define stacking for subroutines.
♫ ▄ █ ▄ █ ▄ █ ▄
0

#12 User is offline   Switchblade 

  • Let freedom ring with a shotgun blast.
  • PipPipPip
  • Group: Members
  • Posts: 210
  • Joined: 29-December 03
  • Gender:Male
  • Location:here

Posted 12 February 2007 - 03:33 AM

Yea, freezetime works just fine. I can't use Mica's method because the bullets will just keep moving.
Fuck Jeff Goldbloom, man.
0

#13 User is offline   Micah 

  • Ancient Member
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 5,330
  • Joined: 25-January 03
  • Gender:Male

Posted 12 February 2007 - 07:05 PM

Switchblade, on Feb 11 2007, 09:33 PM, said:

Yea, freezetime works just fine. I can't use Mica's method because the bullets will just keep moving.

That's your fault for using default bullets j/k j/k lmao :p :D :(
♫ ▄ █ ▄ █ ▄ █ ▄
0

#14 User is offline   Old-Sckool 

  • megazeux breaker
  • PipPipPipPip
  • Group: Members
  • Posts: 649
  • Joined: 07-June 05
  • Gender:Male

Posted 12 February 2007 - 10:18 PM

I saw a pause screen in a horrible remake of Town of ZZT (it works for both built-ins and non built-ins), where pausing was simply enabled through a teleport player "board" x y command. It's only good for going into a relatively complex complex menu system, and certainly not the best option. Logi's is the best, because you can have more robots doing stuff and you could save the MZM as a layer (visuals only).
<Nadir> mzxers don't make GAMES, usually
<phthalocyanine> they make experiences.
<Nadir> demos, more like
<Nadir> a glimpse into what could have been if mzx wasn't such a bore to work with
<Nadir> actually, i'm being unfair
<Nadir> i would have made mzx games if it was capable of running on more than 20 computers worldwide in 1998
<Nadir> >:D

<%Alice> functor
<%nooodl> i hear C++ has a thing called functors and they're completely different from Haskell functors...
<rorirover> the result is the most horrid thing in C++, it's basically black magic and it transforms any code you're writing into some eldritch monstrosity
0

#15 User is offline   Goshi 

  • I'm dreadful of DRAGON.
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 4,146
  • Joined: 23-April 01
  • Gender:Male
  • Location:Hihoukan

Posted 12 February 2007 - 10:34 PM

It does get the job done though however be aware that it can muck up any builtins your using if your making projectiles and such erase upon entry to a board.
0

#16 User is offline   Koji 

  • End
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 6,644
  • Joined: 15-November 01
  • Gender:Not Telling
  • Location:US, NC

Posted 15 February 2007 - 06:12 PM

Everyone using vlayer copying the overlay etc is dumb.

An extra overlaid menu is what sprites are totally made for!

Use freeze time, and use a sprite referencing to the vlayer for the menu.

EASY.
0

#17 User is offline   Xx*SaturnineMatthias*xX 

  • Your mother.
  • PipPipPipPip
  • Group: Members
  • Posts: 799
  • Joined: 07-November 06
  • Gender:Male
  • Location:Knaresborough, UK

Posted 15 February 2007 - 09:00 PM

Koji, on Feb 15 2007, 06:12 PM, said:

Everyone using vlayer copying the overlay etc is dumb.

An extra overlaid menu is what sprites are totally made for!

Use freeze time, and use a sprite referencing to the vlayer for the menu.

EASY.

I use MZMs :p

Does that make me dumber?
this is a signature
0

#18 User is offline   Frobozz 

  • Ryiah
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,808
  • Joined: 07-March 01
  • Gender:Not Telling

Posted 16 February 2007 - 04:40 AM

What we need is a command that essentially pauses everything but the current robot. But that'd be too easy. :p
0

#19 User is offline   zombieguy 

  • Veteran Member
  • Group: Banned
  • Posts: 1,939
  • Joined: 29-June 02
  • Gender:Male
  • Location:Australia, Queensland.

Posted 16 February 2007 - 05:57 AM

Frobozz, on Feb 16 2007, 02:40 PM, said:

What we need is a command that essentially pauses everything but the current robot. But that'd be too easy. :p

The only difference between what you're requesting and freezetime is that you have to put it in the global robot, do you actually have a specific need for the command to not be in the global robot?
0

#20 User is offline   Koji 

  • End
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 6,644
  • Joined: 15-November 01
  • Gender:Not Telling
  • Location:US, NC

Posted 18 February 2007 - 07:27 PM

well the specific use for it is obvious, I want everything to stop but this one robot... and he is going to do stuff... and then unpause everything.

That's pretty specific without being like SPECIFIC TO A SINGLE GAME.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

8 User(s) are reading this topic
0 members, 8 guests, 0 anonymous users