If someone could help me!

Talk about making games.

If someone could help me!

Postby RippeR7420 » Thu Aug 05, 2010 9:54 pm

There are a few glitches I cant seem to fix:

Player glides and\or sticks to wall?

If youre holding right(running) and you push left, then release, He glides backwards?

Please help!


-RippeR


(any feedback would be gladly appreciated) :P
Attachments
level1.exe
(2.93 MiB) Downloaded 50 times
Last edited by RippeR7420 on Thu Aug 05, 2010 10:16 pm, edited 1 time in total.
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: If someone could help me!

Postby RippeR7420 » Fri Aug 06, 2010 12:16 am

The coding in my game isn't the same as one in that tutorial..

Could you take a look at it and see if its possible to fix it with the coding Im using?
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

wall stick

Postby krenisis » Fri Aug 06, 2010 12:27 am

Ok your wall sticking problem is you put collision on any side of.
Here you go
1) click on your player actor
2)click on collision
3) click on any side of ........ change it to right or left side
4) click on the repeat while colliding change to a yes
5) click on add action// script editor
6) type this code in the script editor

yvelocity=-8;

That will make sure you dont stick to walls.
Tutorial Database for all beginners click this link
viewtopic.php?f=4&t=8680
krenisis
 
Posts: 606
Joined: Sat Jul 25, 2009 3:27 pm
Score: 51 Give a positive score

Re: If someone could help me!

Postby RippeR7420 » Fri Aug 06, 2010 12:51 am

I tried everything you told me Krenisis and He Either sticks or the wall becomes an elevator?

Sorry If Im being a pest in anyway!
I just really want to know how to fix these kind of problems :)
CURRENT PROJECTS:

-Olo: The Sword Shaman http://game-editor.com/forum/viewtopic.php?f=4&t=12919

-The Wrath of Blob: (On the back burner)

-StickMcGee - Blast to the Future http://game-editor.com/forum/viewtopic.php?f=4&t=13660
User avatar
RippeR7420
 
Posts: 391
Joined: Mon Apr 27, 2009 4:16 pm
Location: Salt Lake City, Utah.
Score: 23 Give a positive score

Re: If someone could help me!

Postby jimmynewguy » Fri Aug 06, 2010 2:45 am

Use this basic method made be pyro for collsions
Collision->top side->ground->with repeat yes
Code: Select all
double mem = xvelocity;\\holds the current xvelocity
if(yvelocity >= 0)//if your falling
{
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000,1.000000, 0.000000, 1.000000);
xvelocity = mem;//reset the xvelocity so you don't glitch up
jump=1;//reset jump variable
}

Collision->bottom side->ground->with repeat yes
Code: Select all
double mem = xvelocity;
if(yvelocity < 0)//check if moving up
{
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000,1.000000, 0.000000, 1.000000);
xvelocity = mem;
}

Collision->left or right side->ground->with repeat yes
Code: Select all
double mem = yvelocity;
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000,1.000000, 0.000000, 1.000000);
yvelocity = mem;

as for moonwalking you'd have to show me the .ged so i can see how you have it set up, and make sure you are using xvelocity and yvelocity when moving the actor instead of just chaning the x position (xvelocity=3; instead of x=x+3; or x+=3;)
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest