Author Topic: Automatic R to Restart?  (Read 4407 times)

3-headed monkey

  • Cherry Eater
  • Posts: 51
  • he just...walked right into the spike...
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 27.0 Firefox 27.0
    • View Profile
  • Playstyle: Keyboard
Automatic R to Restart?
« on: October 18, 2015, 06:54:32 PM »
Sorry if this has been asked before, but would it be possible for some clever person to write a script to press 'R' automatically? Or has it already been done? Thanks

Kyir

  • The Kid
  • Posts: 293
  • Normal Guy
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.71 Chrome 46.0.2490.71
    • View Profile
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #1 on: October 18, 2015, 07:18:21 PM »
Do you mean that you just want the player to respawn automatically upon death?

3-headed monkey

  • Cherry Eater
  • Posts: 51
  • he just...walked right into the spike...
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 27.0 Firefox 27.0
    • View Profile
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #2 on: October 18, 2015, 07:38:08 PM »
yea that's it, just to help stave off carpal tunnel for a while :)

Denferok

  • Community Manager
  • The Kid
  • Administrator
  • Posts: 355
  • OS:
  • Windows 10 Windows 10
  • Browser:
  • Chrome 46.0.2490.71 Chrome 46.0.2490.71
    • View Profile
    • My stream
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #3 on: October 18, 2015, 07:46:36 PM »
If you're going to do that, add a delay of ~1 second before respawning.

Derf

  • Guest
Re: Automatic R to Restart?
« Reply #4 on: October 18, 2015, 07:48:40 PM »
One of my games had this feature and weirdly enough those who noticed it, didn't like it.

Either way all you need to do is take the code from the R button press in the world object of whatever engine you're using and put it in an alarm in the Game Over object set to, let's say, a second like Den suggested.

3-headed monkey

  • Cherry Eater
  • Posts: 51
  • he just...walked right into the spike...
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 27.0 Firefox 27.0
    • View Profile
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #5 on: October 19, 2015, 06:39:59 PM »
Thanks for the replies, while I would definitely welcome the feature in new games, I was hoping someone might have written a program that can run in the background and work on any existing games, at least the Game Maker ones anyway.


infern0man1

  • ~(=^・ω・^)ψ
  • Global Moderator
  • Oatmeal Killer
  • Posts: 1.021
  • Dear sir stroke madam, fire exclamation point
  • OS:
  • Android 4.4.2 Android 4.4.2
  • Browser:
  • Chrome 46.0.2490.76 Chrome 46.0.2490.76
    • View Profile
    • Twitter
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #6 on: October 19, 2015, 07:07:23 PM »
I don't believe something like that exists; your best bet may be to rebind R to another key.

bananaguy12

  • Guest
Re: Automatic R to Restart?
« Reply #7 on: October 20, 2015, 08:29:34 AM »
I think it would be cool to make this feature optional in fangames.

klazen108

  • Administrator
  • The Kid
  • Posts: 286
  • your a kid now your a squid now
  • OS:
  • Windows 10 Windows 10
  • Browser:
  • Chrome 46.0.2490.71 Chrome 46.0.2490.71
    • View Profile
    • Delicious-Fruit
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #8 on: October 20, 2015, 09:13:55 AM »
Thanks for the replies, while I would definitely welcome the feature in new games, I was hoping someone might have written a program that can run in the background and work on any existing games, at least the Game Maker ones anyway.

Well you asked in the Game Design forum, so we gave you game design tips :P

It's certainly possible to do, you'd just have to write a program that watches the death count in the save file (or in the program memory if you're feeling adventurous), and sends an R keypress when it changes. Both definitely possible.

pieceofcheese87

  • Global Moderator
  • The Kid
  • Posts: 346
  • Personal Text
  • OS:
  • Windows 10 Windows 10
  • Browser:
  • Chrome 46.0.2490.71 Chrome 46.0.2490.71
    • View Profile
    • Twitch Tv Channel
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #9 on: October 20, 2015, 10:37:38 AM »
I prefer manual R pressing. Sometimes it helps to look at where you died / the blood splatter and I want to play at my own pace.
Signature

3-headed monkey

  • Cherry Eater
  • Posts: 51
  • he just...walked right into the spike...
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 27.0 Firefox 27.0
    • View Profile
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #10 on: October 20, 2015, 07:49:55 PM »
Interesting. When you're looking at the blood spatter, do you start to get voices in your head and start foaming at the mouth? Just wondering.

Yea I guess remapping the keyboard is he best option at the moment, what's the best program to do this in your opinion?  Cheers



infern0man1

  • ~(=^・ω・^)ψ
  • Global Moderator
  • Oatmeal Killer
  • Posts: 1.021
  • Dear sir stroke madam, fire exclamation point
  • OS:
  • Android 4.4.2 Android 4.4.2
  • Browser:
  • Chrome 46.0.2490.76 Chrome 46.0.2490.76
    • View Profile
    • Twitter
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #11 on: October 20, 2015, 08:51:48 PM »
I'd suggest using AutoHotKey; it's fairly easy to use.

3-headed monkey

  • Cherry Eater
  • Posts: 51
  • he just...walked right into the spike...
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 27.0 Firefox 27.0
    • View Profile
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #12 on: October 20, 2015, 09:23:16 PM »
thanks man, will give it a try.

3-headed monkey

  • Cherry Eater
  • Posts: 51
  • he just...walked right into the spike...
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 27.0 Firefox 27.0
    • View Profile
  • Playstyle: Keyboard
Re: Automatic R to Restart?
« Reply #13 on: October 25, 2015, 01:50:43 PM »
so now i have Caps lock for R and \ for Z, works great, happy days.