Double Button Held

If you created something quickly in DSGM 'just for fun', post it here. Please post the .DSGM project too.

Double Button Held

Postby Mint » September 4th, 2011, 5:33 pm

It uses DBAS so you can hold 2 buttons and it displays something, instead of holding one.
Attachments
New Project.dsgm
(1.14 KiB) Downloaded 61 times
New Project.nds
(310.56 KiB) Downloaded 53 times
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Re: Double Button Held

Postby thedark » September 4th, 2011, 6:50 pm

nice example. great work. (good for fight games)
you could put it in the example vault.
Last edited by thedark on September 4th, 2011, 7:26 pm, edited 1 time in total.
Workin on a DS Version of Strykers RUN Platform
Watch out for Strikers run part 1 and 2 Demo comming soon !!

If you need any help, contact me, mabe i can help out.
i am 16 hours a day on DSGM Forums. i do read a lot.
thedark
 
Posts: 266
Joined: March 14th, 2011, 9:59 am
Location: Nederland

Re: Double Button Held

Postby Mint » September 4th, 2011, 6:51 pm

I guess, I may just contact Nobody with the file.
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Re: Double Button Held

Postby aekara » September 4th, 2011, 6:54 pm

good i will use it for sure in my game
Working on something big!

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

Re: Double Button Held

Postby Mint » September 4th, 2011, 6:55 pm

Credit me :D
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Re: Double Button Held

Postby aekara » September 4th, 2011, 6:56 pm

how much? : P
Working on something big!

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

Re: Double Button Held

Postby Mint » September 4th, 2011, 6:57 pm

You could mention my name in the game, OR just mention me doing it in the post on the forum. I think on the forum would be best for you and me.
Last edited by Mint on September 4th, 2011, 7:04 pm, edited 1 time in total.
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Re: Double Button Held

Postby aekara » September 4th, 2011, 7:00 pm

i will
Working on something big!

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

Re: Double Button Held

Postby Mint » September 4th, 2011, 7:00 pm

Thanks! What would you use this for?
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Re: Double Button Held

Postby aekara » September 4th, 2011, 7:03 pm

in a fighting game that i am making
Working on something big!

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

Re: Double Button Held

Postby Mint » September 4th, 2011, 7:04 pm

So you use it for Jump-kick and crouch-punch?
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Re: Double Button Held

Postby aekara » September 4th, 2011, 7:17 pm

Jump-kick and spesial move!
Working on something big!

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

Re: Double Button Held

Postby Mint » September 4th, 2011, 7:19 pm

NICE!
So, this is the first time i use dbas. It's simple.
An event.
A button held.
Execute code:
Code: Select all
if Pad.Held.Left

start block
clear text
Output text "You held A and held Left."
end block.

That's how easy it is, it will be no problem with this method.
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Re: Double Button Held

Postby YoshiInAVoid » September 6th, 2011, 9:37 pm

Why not just:

If Pad.Held.A && Pad.Held.Left

In a step event?
Sorry, Jack, YoshiInAVoid's back!

I'm the original; I'll take your breath away! This fall, YoshiInAVoid rules! Did you miss me, Andy? I sure missed you!

Keep an eye out for me.
YoshiInAVoid
 
Posts: 1985
Joined: December 30th, 2010, 11:53 am
Location: England

Re: Double Button Held

Postby Bobbyloujo » September 6th, 2011, 10:05 pm

You could also nest a second if within the first if you want something to happen when just A is held:

Code: Select all
If Pad.Held.A
    Do stuff
    If Pad.Held.Left  //This is called a nested if
        Do other stuff
    End if
End if
Seriously never posting again, lawlz.
jk
Bobbyloujo
 
Posts: 1299
Joined: December 30th, 2010, 8:40 pm
Location: Uh-merica

Re: Double Button Held

Postby Mint » September 6th, 2011, 11:23 pm

Yoshi, I don't know this stuff. Bobbyloujo, I don't know that. It uses DBAS and this was really just practice, so don't get things complicated (for those that want to use this).
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Re: Double Button Held

Postby Nobody » September 7th, 2011, 1:02 am

what yoshi and bobby said wasn't complicated at all. Instead of using the button events they used the step event and then doubled up on DBAS. Yoshi did an if this button and this button is held, and bobby did a series of if's.
Feel free to ask me for help. I'm on the forum a lot.

Recent Projects:
Crafters DS (Minecraft 2D Clone!) viewtopic.php?f=13&t=3082 (latest project!)
The Living Dead - viewtopic.php?f=13&t=1582
Mario Craft - viewtopic.php?f=8&t=1736 (Most Popular!)
Spawn Zombies - viewtopic.php?f=13&t=3444 (Newest)
User avatar
Nobody
 
Posts: 1980
Joined: February 14th, 2011, 12:08 am
Location: United States of America

Re: Double Button Held

Postby Mint » September 7th, 2011, 1:05 am

But I'm not copying them - they use their method as they wish. Foxi knows this better than I do - DO NOT USE SOMETHING SOMEONE GIVES YOU IF YOU HAVE NO IDEA WHAT IT MEANS OR DOES!
Well, not exactly that, but you get the point. I don't know what they're doing, and if someone else doesn't know what they're doing, they could just use my method, and add actions into it.
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Re: Double Button Held

Postby YoshiInAVoid » September 7th, 2011, 4:15 pm

In C && Just means and, ET.
Sorry, Jack, YoshiInAVoid's back!

I'm the original; I'll take your breath away! This fall, YoshiInAVoid rules! Did you miss me, Andy? I sure missed you!

Keep an eye out for me.
YoshiInAVoid
 
Posts: 1985
Joined: December 30th, 2010, 11:53 am
Location: England

Re: Double Button Held

Postby Mint » September 8th, 2011, 1:07 am

ET? Not a good joke.
Pissed.
Ha. Beat that, Bobby.
ATTENTION ALL BRONIES!
You can't take over the DSGM forum. So don't try.
You're welcome here but we all don't have to know you like My Little Pony.

Woot, me gots da Obj-C'z on ma windows ocho-huit-eight!!!
User avatar
Mint
 
Posts: 969
Joined: May 23rd, 2011, 10:25 pm
Location: Liberty City, USA

Next

Return to Just for Fun

Who is online

Users browsing this forum: No registered users and 0 guests

cron