I Wanna Community

Fangames => Game Design => Topic started by: 3-headed monkey on October 18, 2015, 06:54:32 PM

Title: Automatic R to Restart?
Post by: 3-headed monkey 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
Title: Re: Automatic R to Restart?
Post by: Kyir on October 18, 2015, 07:18:21 PM
Do you mean that you just want the player to respawn automatically upon death?
Title: Re: Automatic R to Restart?
Post by: 3-headed monkey on October 18, 2015, 07:38:08 PM
yea that's it, just to help stave off carpal tunnel for a while :)
Title: Re: Automatic R to Restart?
Post by: Denferok on October 18, 2015, 07:46:36 PM
If you're going to do that, add a delay of ~1 second before respawning.
Title: Re: Automatic R to Restart?
Post by: Derf 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.
Title: Re: Automatic R to Restart?
Post by: 3-headed monkey 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.

Title: Re: Automatic R to Restart?
Post by: infern0man1 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.
Title: Re: Automatic R to Restart?
Post by: bananaguy12 on October 20, 2015, 08:29:34 AM
I think it would be cool to make this feature optional in fangames.
Title: Re: Automatic R to Restart?
Post by: klazen108 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.
Title: Re: Automatic R to Restart?
Post by: pieceofcheese87 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.
Title: Re: Automatic R to Restart?
Post by: 3-headed monkey 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


Title: Re: Automatic R to Restart?
Post by: infern0man1 on October 20, 2015, 08:51:48 PM
I'd suggest using AutoHotKey; it's fairly easy to use.
Title: Re: Automatic R to Restart?
Post by: 3-headed monkey on October 20, 2015, 09:23:16 PM
thanks man, will give it a try.
Title: Re: Automatic R to Restart?
Post by: 3-headed monkey on October 25, 2015, 01:50:43 PM
so now i have Caps lock for R and \ for Z, works great, happy days.