Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / My "box pushing" script doesn't work rightly

Author
Message
Brandi
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location:
Posted: 5th Apr 2010 03:02 Edited at: 8th Apr 2010 08:03
Hi, I'm still a lil new at FPSC script, I've tried to create a box pushing script (user press Enter and the box's moved forward)

When I build and run a test, the box does move when I press Enter near it, but it's moving forward (just 1/4 chance forward, sometimes it moves to the left, the right and backward and pushing me back), please tell me what's wrong with my code, thank you!

Dreams really do come true ..
starmind 001
FPSC Reloaded Backer
17
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 7th Apr 2010 05:19
Try the script with these hoverboards and edit it to fit your needs.

http://forum.thegamecreators.com/?m=forum_view&t=121252&b=24

Brandi
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location:
Posted: 8th Apr 2010 08:03
Thank you Starmind 001, you're so kind, I'll try that

Dreams really do come true ..
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 11th Apr 2010 12:20
brandi, you need to post your source if you want any help what so ever.

But I can actually tell you what is wrong. Your "entity" needs to "rotatetoplr" (or w/e it is). because the entity does not know its location relative to the players location, when you tell it to "push" it just "moves forward".

You need to have it face the player, then movebackward (or -number forward).

Its not who you are or what you've done... its WHY you did it and how far you are willing to go.
If you fear speaking for yourself, make use the words of others while discovering your own voice.

Login to post a reply

Server time is: 2024-11-25 01:26:58
Your offset time is: 2024-11-25 01:26:58