How to make RPG games in DSGM 5

Learn to use DS Game Maker by Example.

Re: How to make RPG games in DSGM 5

Postby JanMulder » September 25th, 2011, 11:12 am

Yes there's a limit, I never thought people would load more than 10 sprites.
You can easily change it though:
open RPGlib(for5).c with notepad.
Hit ctrl+F.
Type 10.
Then replace all 10's (not the 100's) with a different maximum.
here and yet not here
JanMulder
 
Posts: 738
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

Postby JanMulder » September 25th, 2011, 11:34 am

Yes, I know. I just did that before you commented, but it's a little too less to update the lib.
here and yet not here
JanMulder
 
Posts: 738
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

Postby Buck_7 » September 25th, 2011, 6:32 pm

JanMulder wrote:Yes there's a limit, I never thought people would load more than 10 sprites.
You can easily change it though:
open RPGlib(for5).c with notepad.
Hit ctrl+F.
Type 10.
Then replace all 10's (not the 100's) with a different maximum.



Okay, I hope I don't mess anything up.
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: How to make RPG games in DSGM 5

Postby Buck_7 » September 25th, 2011, 6:43 pm

Yay, it worked! I probably won't be using 11 sprites again, but It will be nessesary for this project.
Now, I have encounter another problem. Sometimes there are "certian spots" that I cannot walk through. I DID NOT paint any black in the collision map. Why does that happen?
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: How to make RPG games in DSGM 5

Postby JanMulder » September 25th, 2011, 6:52 pm

Maybe the red isn't real red (255,0,0)? Can you give me an example?
here and yet not here
JanMulder
 
Posts: 738
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

Postby Buck_7 » September 25th, 2011, 7:00 pm

JanMulder wrote:Maybe the red isn't real red (255,0,0)? Can you give me an example?


Okay, I'll check again. But Sometimes I can go throught it as well. I'll try to make a demo.
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: How to make RPG games in DSGM 5

Postby Mitchp58 » October 26th, 2011, 11:48 am

I've come across a strange problem. When I try compile my game and move the main character to the edge of the map, rather than a 'black void' being shown on the other side, the other side of the map does, as if it's scrolling. I've disabled 'Scroll BG with background,' if it matters.
Attachments
Demo.dsgm
(34.78 KiB) Downloaded 234 times
Screenshot.png
Screenshot.png (4.15 KiB) Viewed 14382 times
Mitchp58
 
Posts: 5
Joined: May 20th, 2011, 2:00 pm

Re: How to make RPG games in DSGM 5

Postby JanMulder » October 26th, 2011, 4:06 pm

Add a black bar on the right side of the background (128 pixels) and a black bar on the bottom side of the background (96 pixels).
here and yet not here
JanMulder
 
Posts: 738
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

Postby Mitchp58 » October 27th, 2011, 10:27 am

Thanks. Sorry for the n00b question; I did that before, I was just wondering if it was supposed to be happening. I have a far bigger problem. I'm trying to implement a system in which a player colliding with an arrow will cause it to go to another area corresponding to the arrow. I believe I've implemented this right, but, when the room does change, the player object doesn't come with it (I have tried putting the player object in the second room). Thanks for any help you can offer.
Attachments
Demo.dsgm
(73.49 KiB) Downloaded 243 times
Mitchp58
 
Posts: 5
Joined: May 20th, 2011, 2:00 pm

Re: How to make RPG games in DSGM 5

Postby JanMulder » October 27th, 2011, 1:03 pm

I think you haven't really understood the tutorial. I would suggest reading the tutorial another time carefully and try looking at the example I gave with it.
here and yet not here
JanMulder
 
Posts: 738
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

Postby memefefe » November 5th, 2011, 9:53 pm

Oh wow his question is very similar to what I was wondering.
I would like to have something similar to this
If rpg sprite collides with gate_North &
If world=1 &
If room=1
Load Background (for room 2)
Set variable room to 2
Load any objects that would be in room 2 (eg enemies and items)
Set rpg sprite to (x,y)
Delete everything that was in room 1

Although Im having trubble with the rpg sprite collision the set rpg sprite (x,y) and the deleting all objects from room 1

Any help would be apreciated thank you!
Who doesnt wanna watch a weirdo tumble?
http://kawaiiweirdo.tumblr.com
memefefe
 
Posts: 931
Joined: August 19th, 2011, 3:35 am
Location: The infinite expanses of my mind

Re: How to make RPG games in DSGM 5

Postby Buck_7 » November 5th, 2011, 9:55 pm

I would rather keep the rooms seperate.
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: How to make RPG games in DSGM 5

Postby memefefe » November 5th, 2011, 9:57 pm

Hmmm I guess so. Just thought that it might end up better in the long run. Ill play around more with it and see what I can do. Im finding that this tutorial while great can get rather messing when using multiple rooms
Who doesnt wanna watch a weirdo tumble?
http://kawaiiweirdo.tumblr.com
memefefe
 
Posts: 931
Joined: August 19th, 2011, 3:35 am
Location: The infinite expanses of my mind

Re: How to make RPG games in DSGM 5

Postby memefefe » November 5th, 2011, 10:00 pm

I feel I could do what Im trying to do rather easy without his tutorial and just regular objects but then I dont know how to get the nice movement of the character by tiles.
Who doesnt wanna watch a weirdo tumble?
http://kawaiiweirdo.tumblr.com
memefefe
 
Posts: 931
Joined: August 19th, 2011, 3:35 am
Location: The infinite expanses of my mind

Re: How to make RPG games in DSGM 5

Postby Buck_7 » November 5th, 2011, 10:03 pm

I'm going to see if I can mimic the movement...
User avatar
Buck_7
 
Posts: 1460
Joined: February 19th, 2011, 1:44 am

Re: How to make RPG games in DSGM 5

Postby memefefe » November 5th, 2011, 10:04 pm

That would be so awesome if you could!
Who doesnt wanna watch a weirdo tumble?
http://kawaiiweirdo.tumblr.com
memefefe
 
Posts: 931
Joined: August 19th, 2011, 3:35 am
Location: The infinite expanses of my mind

Re: How to make RPG games in DSGM 5

Postby memefefe » November 6th, 2011, 7:35 pm

Yeah that's what I'm trying to do but with an rpg it has to load the new background when the player collides with the gate object and then the character has to be moved to a new location on the second backgroud also the new objects need to be loaded and the old objects need to be deleted
Who doesnt wanna watch a weirdo tumble?
http://kawaiiweirdo.tumblr.com
memefefe
 
Posts: 931
Joined: August 19th, 2011, 3:35 am
Location: The infinite expanses of my mind

Re: How to make RPG games in DSGM 5

Postby JanMulder » November 6th, 2011, 8:52 pm

This should fix all problems switching rooms:
run this in the beginning of every room.
Execute Code:
Code: Select all
int i;
for (i=0;i<RPG_MAXSPRITES*2;i++) {
RPGSprite[i>=RPG_MAXSPRITES][i-(i>=RPG_MAXSPRITES)*10].InUse = false;
}
RPGBasicInfo[0].InUse = false;
RPGBasicInfo[1].InUse = false;

replace RPG_MAXSPRITES with 10 for normal users.

This is C. Make sure it doesn't want DBAS.
Last edited by JanMulder on November 10th, 2011, 10:24 pm, edited 1 time in total.
here and yet not here
JanMulder
 
Posts: 738
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

Postby memefefe » November 7th, 2011, 12:22 am

Ok so what exactly is this going to do? I don't wanna use something and not understand it
Who doesnt wanna watch a weirdo tumble?
http://kawaiiweirdo.tumblr.com
memefefe
 
Posts: 931
Joined: August 19th, 2011, 3:35 am
Location: The infinite expanses of my mind

Re: How to make RPG games in DSGM 5

Postby JanMulder » November 7th, 2011, 1:28 pm

It resets the RPG system.
here and yet not here
JanMulder
 
Posts: 738
Joined: December 30th, 2010, 3:08 pm

PreviousNext

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest