Jump to content


Photo

Making a notepad when press f2


  • Please log in to reply
11 replies to this topic

#1 lfc-lad

lfc-lad

    GMC Member

  • GMC Member
  • 39 posts
  • Version:GM8

Posted 07 August 2012 - 05:34 PM

finished - no longer doing this, thanks anyway if you helped :biggrin:





Hello people viewing this, i'm just about to finish my very first game off and to let it be called ' maze game deluxe ' and then when i've added more stuff in, call that one 'maze game deluxe 1.1' and then ...1.2 and so,on. But the only thing keeping me back from uploading it now is that i want to make an in game notebook, notepad, or even a white page pop up when i press f2. I want then to be able to write stuff down and this is because i have included cheats in my game. So whenever someone finds a chest, opens it up an it then says "congratulations... you found a cheat...it is speed, input that and your speed doubles" etc. I want then to be able to press f2, the notebook opens up and then i type in 'speed = double speed'. If anyone knows at all how to do something like this please reply to me, im in desperate need of help. i use :GM8: :thumbsup:

Edited by lfc-lad, 08 August 2012 - 09:05 AM.

  • 1

#2 Merlocker

Merlocker

    No Imagination

  • GMC Member
  • 450 posts
  • Version:GM8

Posted 07 August 2012 - 05:44 PM

-----KeyPressF2-------
cheat=get_string
if cheat="speed"
{speed*=2}
  • 0

#3 Blackknight37

Blackknight37

    GMC Member

  • GMC Member
  • 242 posts

Posted 07 August 2012 - 06:08 PM

-----KeyPressF2-------
cheat=get_string
if cheat="speed"
{speed*=2}

He was asking about how to make it so you can write a journal basically, and keep track of your cheats.
  • 0

#4 Merlocker

Merlocker

    No Imagination

  • GMC Member
  • 450 posts
  • Version:GM8

Posted 07 August 2012 - 06:18 PM

its the players responsibility to keep track of the cheats.
  • 0

#5 lfc-lad

lfc-lad

    GMC Member

  • GMC Member
  • 39 posts
  • Version:GM8

Posted 07 August 2012 - 06:51 PM


-----KeyPressF2-------
cheat=get_string
if cheat="speed"
{speed*=2}

He was asking about how to make it so you can write a journal basically, and keep track of your cheats.


yes, i was looking to do exactly what you said, i want to be able to press f2 or something like that then a menu pops up and then you can write the cheat down, just to make the game more 'complex' and 'advanced' in a way if you know what i mean, do you know how to??? or anyone else ???
  • 0

#6 jeaux

jeaux

    GMC Member

  • GMC Member
  • 5 posts
  • Version:GM8

Posted 07 August 2012 - 08:35 PM

I am sorry to see this go unanswered. I am very very new here and do not have an answer. I think that you might have something interesting here and can be implemented in other games. If an answer can be found. Detective games, puzzle games, and other genres can use a little built in notepad to add to the complexity of the game. I will keep an eye on this thread in hopes that one day you do get an answer!
  • 0

#7 dannyjenn

dannyjenn

    GMC Member

  • GMC Member
  • 2239 posts
  • Version:Mac

Posted 07 August 2012 - 09:19 PM

What exactly are you asking for? Do it like Merlocker said... and for multiple cheats / pages, just store each of them in an array or data structure rather than a regular variable.
  • 0

#8 lfc-lad

lfc-lad

    GMC Member

  • GMC Member
  • 39 posts
  • Version:GM8

Posted 07 August 2012 - 09:28 PM

What exactly are you asking for? Do it like Merlocker said... and for multiple cheats / pages, just store each of them in an array or data structure rather than a regular variable.


yea, i have done that, i have made them in chests for people to find when playing the game, but i want it so if i press f2, a notepad will open up, then i can type stuff in to it and then close it again. Then when i open it, the text will still be there, e.g. press f2 and type in "code is points, will give me 1000 points" or something like that. if you get what i mean. :huh:
  • 0

#9 Futhark

Futhark

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

Posted 07 August 2012 - 10:14 PM

...i want it so if i press f2, a notepad will open up, then i can type stuff in to it and then close it again. Then when i open it, the text will still be there, e.g. press f2 and type in "code is points, will give me 1000 points" or something like that. if you get what i mean. :huh:


Just for clarification:

Aside from your "notepad" idea to keep notes and such, are you basically talking about like a code that you get somewhere in the game (like after finishing a level or mastering a skill or whatever). And when you type it into your "notepad" thingy, it unlocks something, like extra speed, more lives, new moves or whatever?

EDIT: Why not just have the cheats put into effect automatically when they are unlocked. And update the journal automatically, something like "Extra speed unlocked/added" or "Double jumping learned"

Edited by Futhark, 07 August 2012 - 10:20 PM.

  • 0

#10 dannyjenn

dannyjenn

    GMC Member

  • GMC Member
  • 2239 posts
  • Version:Mac

Posted 08 August 2012 - 03:16 AM

yea, i have done that, i have made them in chests for people to find when playing the game, but i want it so if i press f2, a notepad will open up, then i can type stuff in to it and then close it again. Then when i open it, the text will still be there, e.g. press f2 and type in "code is points, will give me 1000 points" or something like that. if you get what i mean. :huh:

That's what Merlocker's code does... you type in something (that's what get_string() does) and it gets stored in a variable. If you are using arrays or data structures then whatever you put in there will still be there whenever you open it again. If you want it to look nice, write some code to get a string rather than using get_string(), but it's the same idea.
  • 0

#11 lfc-lad

lfc-lad

    GMC Member

  • GMC Member
  • 39 posts
  • Version:GM8

Posted 08 August 2012 - 09:04 AM


yea, i have done that, i have made them in chests for people to find when playing the game, but i want it so if i press f2, a notepad will open up, then i can type stuff in to it and then close it again. Then when i open it, the text will still be there, e.g. press f2 and type in "code is points, will give me 1000 points" or something like that. if you get what i mean. :huh:

That's what Merlocker's code does... you type in something (that's what get_string() does) and it gets stored in a variable. If you are using arrays or data structures then whatever you put in there will still be there whenever you open it again. If you want it to look nice, write some code to get a string rather than using get_string(), but it's the same idea.


i might just actually leave it out, thanks anyway to all you tried to help :thumbsup:
  • 0

#12 lfc-lad

lfc-lad

    GMC Member

  • GMC Member
  • 39 posts
  • Version:GM8

Posted 08 August 2012 - 09:04 AM


yea, i have done that, i have made them in chests for people to find when playing the game, but i want it so if i press f2, a notepad will open up, then i can type stuff in to it and then close it again. Then when i open it, the text will still be there, e.g. press f2 and type in "code is points, will give me 1000 points" or something like that. if you get what i mean. :huh:

That's what Merlocker's code does... you type in something (that's what get_string() does) and it gets stored in a variable. If you are using arrays or data structures then whatever you put in there will still be there whenever you open it again. If you want it to look nice, write some code to get a string rather than using get_string(), but it's the same idea.


i might just actually leave it out, thanks anyway to all you tried to help :thumbsup:
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users