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 YoshiInAVoid » November 6th, 2011, 10:43 am

I achived that in A Day As Santa DS.

I created a variable called "Level" and if it was on 1 then I would load the first background and if it was on 2 I would load the second background; and then it just ran some gravity code.
YoshiInAVoid
 
Posts: 1960
Joined: December 30th, 2010, 11:53 am
Location: England

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: 952
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: 726
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: 952
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: 726
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

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

After running this do I need to run everything new? Im sorry my brain isnt working today.

I made a small demo (not using your lib) of what Im trying to do
RPG_DEMO.dsgm
(20.47 KiB) Downloaded 56 times
Who doesnt wanna watch a weirdo tumble?
http://kawaiiweirdo.tumblr.com
memefefe
 
Posts: 952
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 7th, 2011, 7:12 pm

When I put your code in it gave an error like length cannot be less then zero?
Who doesnt wanna watch a weirdo tumble?
http://kawaiiweirdo.tumblr.com
memefefe
 
Posts: 952
Joined: August 19th, 2011, 3:35 am
Location: The infinite expanses of my mind

Re: How to make RPG games in DSGM 5

Postby aekara » November 7th, 2011, 10:33 pm

try puting the code in a C script and uncheck the "parse DBAS"
Working on something big!

My web site here.
aekara
 
Posts: 693
Joined: July 12th, 2011, 1:24 pm
Location: Earth

Re: How to make RPG games in DSGM 5

Postby Buck_7 » November 7th, 2011, 11:21 pm

JanMulder wrote:It resets the RPG system.


Will the code fix my problem of the " invisible blocks"?
Upcoming games I'm working on:
  • Minecraft2DS
  • Bow Man DS
  • Bird poo!
------------------------------------------------------------------------
COOL LOOK 3D portal port for DS! http://drunkencoders.com/2013/01/dstal-advance/
needMusic?needHelp?Ask.
User avatar
Buck_7
 
Posts: 963
Joined: February 19th, 2011, 1:44 am

Re: How to make RPG games in DSGM 5

Postby memefefe » November 8th, 2011, 2:11 am

Ok Ill try that, sorry for being so noobish. I just really wanna figure this out
Who doesnt wanna watch a weirdo tumble?
http://kawaiiweirdo.tumblr.com
memefefe
 
Posts: 952
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 8th, 2011, 5:59 pm

Buck_7 wrote:
JanMulder wrote:It resets the RPG system.


Will the code fix my problem of the " invisible blocks"?

Yes.
here and yet not here
JanMulder
 
Posts: 726
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

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

Yay!

I'm also trying to move the RPG sprite using the stylus. Here's my code, but when I try it out,the sprite only moves right.

Code: Select all
DSGMACTS
If Variable,Stylus.X;>;[Me],this
Start Block,,this
Move RPG Sprite,GoToColor;1;RPG_RIGHT,this
End Block,,this
If Variable,Stylus.X;<;[Me],this
Start Block,,this
Move RPG Sprite,GoToColor;1;RPG_LEFT,this
End Block,,this
If Variable,Stylus.Y;>;[Me],this
Start Block,,this
Move RPG Sprite,GoToColor;1;RPG_UP,this
End Block,,this
If Variable,Stylus.Y;<;[Me],this
Start Block,,this
Move RPG Sprite,GoToColor;1;RPG_DOWN,this
End Block,,this
Upcoming games I'm working on:
  • Minecraft2DS
  • Bow Man DS
  • Bird poo!
------------------------------------------------------------------------
COOL LOOK 3D portal port for DS! http://drunkencoders.com/2013/01/dstal-advance/
needMusic?needHelp?Ask.
User avatar
Buck_7
 
Posts: 963
Joined: February 19th, 2011, 1:44 am

Re: How to make RPG games in DSGM 5

Postby JanMulder » November 10th, 2011, 10:26 pm

It's not just [Me], you should also say X or Y. I think you should put:
Instances[[Me]].X
or Instances[[Me]].Y
here and yet not here
JanMulder
 
Posts: 726
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

Postby Buck_7 » November 11th, 2011, 1:11 am

The sprite only moves left or right now :|

Code: Select all
DSGMACTS
If,Stylus.Held,this
Start Block,,this
If Variable,Stylus.X;>;Instances[[Me]].X,this
Start Block,,this
Move RPG Sprite,GoToColor;1;RPG_RIGHT,this
End Block,,this
If Variable,Stylus.X;<;Instances[[Me]].X,this
Start Block,,this
Move RPG Sprite,GoToColor;1;RPG_LEFT,this
End Block,,this
If Variable,Stylus.Y;>;Instances[[Me]].Y,this
Start Block,,this
Move RPG Sprite,GoToColor;1;RPG_UP,this
End Block,,this
If Variable,Stylus.Y;<;Instances[[Me]].Y,this
Start Block,,this
Move RPG Sprite,GoToColor;1;RPG_DOWN,this
End Block,,this
End Block,,this
Upcoming games I'm working on:
  • Minecraft2DS
  • Bow Man DS
  • Bird poo!
------------------------------------------------------------------------
COOL LOOK 3D portal port for DS! http://drunkencoders.com/2013/01/dstal-advance/
needMusic?needHelp?Ask.
User avatar
Buck_7
 
Posts: 963
Joined: February 19th, 2011, 1:44 am

Re: How to make RPG games in DSGM 5

Postby JanMulder » November 11th, 2011, 4:45 pm

That's because you say it should move left when the stylus is on the left side on the screen, and the other way around, without thinking of the fact that when the stylus is on the bottom or top side of the screen it is also on either the left or the right side.
here and yet not here
JanMulder
 
Posts: 726
Joined: December 30th, 2010, 3:08 pm

Re: How to make RPG games in DSGM 5

Postby Buck_7 » November 18th, 2011, 7:14 pm

JanMulder wrote: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.



So what do I put in for the argument for the C Script?
Upcoming games I'm working on:
  • Minecraft2DS
  • Bow Man DS
  • Bird poo!
------------------------------------------------------------------------
COOL LOOK 3D portal port for DS! http://drunkencoders.com/2013/01/dstal-advance/
needMusic?needHelp?Ask.
User avatar
Buck_7
 
Posts: 963
Joined: February 19th, 2011, 1:44 am

Re: How to make RPG games in DSGM 5

Postby YoshiInAVoid » November 19th, 2011, 10:48 am

There are no arguments for it. Just replace RPG_MAXSPRITES with 10. So like this:

int i;
for (i=0;i<10*2;i++) {
RPGSprite[i>=10][i-(i>=10)*10].InUse = false;
}
RPGBasicInfo[0].InUse = false;
RPGBasicInfo[1].InUse = false;
YoshiInAVoid
 
Posts: 1960
Joined: December 30th, 2010, 11:53 am
Location: England

Re: How to make RPG games in DSGM 5

Postby drakodra » November 27th, 2011, 8:42 pm

uhm i really like this but i come up with a problem before th coding even starts (i think at least) i downloaded your game and it loads perfectly on my r4 and the game i created (with help from another tutorail from this forum) does load but it freezes directly at black screen what can be the problem here
drakodra
 
Posts: 2
Joined: November 27th, 2011, 8:12 pm

Re: How to make RPG games in DSGM 5

Postby TheMackshun » December 3rd, 2011, 5:12 am

Not quite sure why that would happen, if it works in the emulator then it should work on the flashcart. Maybe patch it just in case.
Go Check Out Space Destroyer!
viewtopic.php?f=13&t=1876
Info and Demo about my current Rpg, SoulBlaze.
viewtopic.php?f=13&t=2139
Pm me If you need help. I like answering questions. :D
TheMackshun
 
Posts: 209
Joined: January 20th, 2011, 2:56 am

Re: How to make RPG games in DSGM 5

Postby drakodra » December 7th, 2011, 8:01 pm

TheMackshun wrote:Not quite sure why that would happen, if it works in the emulator then it should work on the flashcart. Maybe patch it just in case.

but i downloaded the rom version (sorry if wrong spelled i'm dutch) of this game i i don't even know if that's patched and that works on my flashcard
drakodra
 
Posts: 2
Joined: November 27th, 2011, 8:12 pm

Previous

Return to Tutorials & Examples

Who is online

Users browsing this forum: No registered users and 0 guests

cron