1 registered members (AbrahamR),
717
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
just movement
#272170
06/16/09 20:07
06/16/09 20:07
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
hey, Im trying to recreate the original mario game from nintendo, Im not sure how to ask this to get a easy answer, so im sorry about that. But 1, what code would i use to make mario move right when press right, or jump when i press up. and 2, what code would i use to make him move (all i want is mario to move, but he doesnt move his legs or anything) Im sorry for not making my questions very clear.
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: just movement
[Re: croman]
#272173
06/16/09 20:10
06/16/09 20:10
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
how would u pair the right button to making mario go right? and how would i make mario come back down after he jumps?
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: just movement
[Re: gamingfan101]
#272176
06/16/09 20:17
06/16/09 20:17
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
while(1)
{
if(key_cur) //walk
{
c_move(me, moveVector, nullvector, GLIDE);
ent_animate(me, "walk", ANM_CYCLE);
...
}
if(key_space) //jump
{
c_move(me, moveVector, nullvector, GLIDE); //moveVector.z is for up/down movement
ent_animate(me, "jump",...);
...
}
}
something like that. if you dont understand this, i suggest you learn lite-c first. you have workshop. after that try it on your own. search the manual
Ubi bene, ibi Patria.
|
|
|
Re: just movement
[Re: Cowabanga]
#272282
06/17/09 09:14
06/17/09 09:14
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
he didnt say he'll sell it. maybe it's for practice/learning only and maybe his main character wont even be Mario...
Ubi bene, ibi Patria.
|
|
|
Re: just movement
[Re: croman]
#272548
06/18/09 13:48
06/18/09 13:48
|
Joined: Jun 2009
Posts: 148
gamingfan101
OP
Member
|
OP
Member
Joined: Jun 2009
Posts: 148
|
yeah, i wasnt going to sell, its just im new to working with this program so i thought id start with something small.
Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
|
|
|
Re: just movement
[Re: darkinferno]
#272554
06/18/09 14:56
06/18/09 14:56
|
Joined: Feb 2008
Posts: 337
Vadim647
Senior Member
|
Senior Member
Joined: Feb 2008
Posts: 337
|
normally people use gamemaker to create mario games (if you watch here, you'll see that this idea was picked up more than 1000 times...)
I switched to other account since marth 2010. Guess which.
|
|
|
|