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.

Author
Message
eatsNoobs
14
Years of Service
User Offline
Joined: 30th Apr 2012
Location:
Posted: 24th May 2012 17:50
I'm trying to move an object down at a slow speed

this is all I got so far:

move object down 8, 1

thanks
zeroSlave
17
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 24th May 2012 19:51 Edited at: 30th May 2012 06:37
You would first need to establish what your (target) fps is if you are not using timer based movement. An easy way to do this is just to use the SYNC and SYNC RATE commands.

Here is an example.

Hope this helps!

Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.
Daniel wright 2311
User Banned
Posted: 25th May 2012 02:56
move object 8,0.1 would be the slowest speed other then not at all.

Using decinal points to lessen the number down to the smallest ammount will work.

my signature keeps being erased by a mod So this is my new signature.
eatsNoobs
14
Years of Service
User Offline
Joined: 30th Apr 2012
Location:
Posted: 25th May 2012 17:36
What if the move object is in an if statement? sync just seems to make the screen flash like mad and if I don't have sync in there it doesn't move far at all it just stops after moving ever so slightly.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 26th May 2012 13:07
You need sync On at the beginning of your program to use Sync.

eatsNoobs
14
Years of Service
User Offline
Joined: 30th Apr 2012
Location:
Posted: 29th May 2012 17:44
OK so I used sync and all it does is shake the camera violently until the objects stop moving (which I don't know why they stop moving either their not supposed to)


if ToStart = 0
rem Player's Cage
move object down 8, 1
move object down 10, 1
move object down 11, 1
move object down 12, 1
move object down 13, 1
move object down 14, 1
move object down 15, 1
move object down 16, 10
play sound 15
rem Opponent's Cage
move object down 20, 1
move object down 21, 1
move object down 22, 1
move object down 23, 1
move object down 24, 1
move object down 25, 1
move object down 26, 1
move object down 27, 1
play sound 15
endif






All that I want is for when ToStart = 0 for these objects to move down and out of the way but it doesn't move out of the way unless I do move object down 27, 10 but then it moves too quickly for the sound.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 29th May 2012 20:21 Edited at: 29th May 2012 20:25
well Zero Slaves code should be

SYNC On
SYNC RATE 60

not

SYNC
SYNC RATE 60

And you need to put your movement code in FOR / NEXT loops.

For n = 8 to 16
move object down n, 1.0
Next n
Sync

.. and then put that in a Subroutine, and then call it all of the time.

zeroSlave
17
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 30th May 2012 07:06
Sorry about that. I've fixed it above for future viewers.

And here is some more code to expand on what Pincho Paxton said, and to see it in use.


Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.
eatsNoobs
14
Years of Service
User Offline
Joined: 30th Apr 2012
Location:
Posted: 30th May 2012 17:29
OK well how do I play the sound when the objects actually move? when I try to do it all I don't hear the sound until the next round
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 30th May 2012 17:41
Sound needs a sync after it.

Login to post a reply

Server time is: 2026-07-08 10:39:48
Your offset time is: 2026-07-08 10:39:48