Topic:   Roguesoft RPG Engine?   (Read 94767 times)


0 Members and 3 Guests are viewing this topic.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Roguesoft RPG Engine?
« on: December 03, 2009, 01:48:04 PM »
Upon browsing the resources section on the GM homepage I came across a file entitled Roguesoft RPG Engine. Not ringing a bell I decided to download it and discovered it to be a very old, very incomplete engine I started long ago in an effort to make RPGs even easier to make than they are at present (what with all the tutorials and engines available nowadays) I was about to post "Whoops!" but have decided to finish the engine instead.

Here it is so far: http://www.mediafire.com/?zyomkmreqzz

It uses a scrolling background nav (or "player centred" nav), and will feature an immensely more complicated enemy location spawner than any I've ever seen in a GM/SC game. I'm quite proud of the random location spawner I wrote for ToF, but this will be greater again if I can pull it off. Can anyone guess what I'm talking about?
I survived the spammage of 2007

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Roguesoft RPG Engine?
« Reply #1 on: December 03, 2009, 03:18:05 PM »
Very Interesting. I might try that but I probably won't. Very cool though. Now all you need is the bad guys to have some sort of movement AI for the monsters and a battle engine.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Roguesoft RPG Engine?
« Reply #2 on: December 03, 2009, 03:52:54 PM »
Any guesses as to what's so special about the NPC spawner?
« Last Edit: December 03, 2009, 03:53:35 PM by Silverwind »
I survived the spammage of 2007

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Roguesoft RPG Engine?
« Reply #3 on: December 03, 2009, 05:04:02 PM »
Great. I'll update it on my site as well.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Roguesoft RPG Engine?
« Reply #4 on: December 03, 2009, 08:13:27 PM »
Quote
Any guesses as to what's so special about the NPC spawner?
Hmmm, it spawns according to the stats of the player?
(This is a pretty neat engine, scrolling = awesome)

-Gandolf

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Roguesoft RPG Engine?
« Reply #5 on: December 03, 2009, 09:05:33 PM »
Quote
Hmmm, it spawns according to the stats of the player?
-Gandolf
Nope, but good guess... ;D
« Last Edit: December 03, 2009, 09:05:47 PM by Silverwind »
I survived the spammage of 2007

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Roguesoft RPG Engine?
« Reply #6 on: December 03, 2009, 10:01:15 PM »
Nothing seems to be too special about the NPC spawner. It designates where the npc will spawn directly. The scrolling is pretty awesome. I did notice though that the code gets kinda repetitive at points like

IF npc1Action = 1 THEN npc1Action$ = "Move Up"
IF npc1Action$ = "Move Up" THEN npc1NewGridY = npc1GridY - 1

It would be far more efficient to do

IF npc1Action = 1 THEN npc1NewGridY = npc1NewGridY - 1

But I understand the need to understand your code (I sometimes look at my code and have no idea what its doing)
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Roguesoft RPG Engine?
« Reply #7 on: December 04, 2009, 05:03:25 AM »
Yeah, I like translating the raw number to a string so I can see at a glance all the collision classes. :) As for the NPC spawner, you haven't seen it yet (and I haven't finished it yet). The routine included is a work in progress, and mostly just a cleaned up version of ToF's.

No indeed, the NPC spawner will be far greater than that... *cackles madly*
« Last Edit: December 04, 2009, 05:04:32 AM by Silverwind »
I survived the spammage of 2007

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Roguesoft RPG Engine?
« Reply #8 on: December 04, 2009, 05:57:37 PM »
My NPC spawner spawns the sprite anywhere.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Roguesoft RPG Engine?
« Reply #9 on: December 04, 2009, 06:02:21 PM »
Oh indeed? Any chance of letting me see it? I'd love to see how you did it. ToF did it, but it took me ages to make it truly randomized.
I survived the spammage of 2007

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Roguesoft RPG Engine?
« Reply #10 on: December 04, 2009, 07:23:35 PM »
Oh its very simple.

REPEAT
monsterX = RANDOM 7
monsterY = RANDOM 7
x = monsterY * 7
x = x - 7
x = x + monsterX
temp$ = MID$ Gridlayout$ x 1
IF temp$ <> "1" THEN EXIT REPEAT
END REPEAT
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Roguesoft RPG Engine?
« Reply #11 on: December 04, 2009, 07:35:00 PM »
Ah, but what if the tile is a solid object? Does the spawn routine simply cancel? If so then the spawn frequency of NPCs will be influenced by the amount of non traversable tiles in the room.

These are the things I had to work out for ToF. ;)
I survived the spammage of 2007

Mystor


  • GMG-er

  • **


  • Posts: 696

  • I am the myst that consumes us all.
Re: Roguesoft RPG Engine?
« Reply #12 on: December 04, 2009, 10:06:14 PM »
Quote
Ah, but what if the tile is a solid object? Does the spawn routine simply cancel? If so then the spawn frequency of NPCs will be influenced by the amount of non traversable tiles in the room.

These are the things I had to work out for ToF. ;)
Usually with functions if it fails it just calls itself again.
so it keeps on looping till it finds an empty space.

Mist
"I'll lie to him."
"And if that doesn't work?"
"Then I'll tell the truth. We're allowed to do that, in emergencies. We can't plan for everything, you know."
   -Colonel Graff, Ender&

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Roguesoft RPG Engine?
« Reply #13 on: December 04, 2009, 10:06:44 PM »
It continually repeats until it lands on a nonsolid object (I mark all of my solids as 1) Thats what the "IF temp$ <> "1" THEN EXIT REPEAT" is for to check if its on a solid or not if its on a solid it will go through the routine again hence the repeat.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Roguesoft RPG Engine?
« Reply #14 on: December 05, 2009, 01:54:16 AM »
Ah, but then if you have a room with very few traversable tiles it's likely that the delay in spawning will be more noticeable, as it'll execute the repeat block more times on average. Also, there could at any time occur a sizeable delay of several seconds if the randomizer rolls successive bad odds.

Once again, a problem I spent a long time finding a workaround to.
I survived the spammage of 2007