Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
trying to float an orb... #440294
04/23/14 01:43
04/23/14 01:43
Joined: Aug 2005
Posts: 199
houston
S
seneca Offline OP
Member
seneca  Offline OP
Member
S

Joined: Aug 2005
Posts: 199
houston
Hi all, sorry to bother, but I'm trying to have a patrol bot float or hover in one place up and down slowly. I know I wrote a code for it about 5 years ago, modified it from a aum lesson, I think. but I can't find the aum or figure out how I did it. searched for it here on the forum too, but still no answers.

Can someone help me? thanks a bunch!


a8 commercial
Re: trying to float an orb... [Re: seneca] #440296
04/23/14 06:20
04/23/14 06:20
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Code:
#define target_height skill80
...
my.target_height = XYZ; // either some value or for example c_trace and then target.z (when trace_hit != 0) + let's say 128
my.skill81 += 8*time_step; // may be a little too fast
my.skill81 %= 360;
my.skill82 = my.target_height+32*sinv(my.skill81)*time_step; // cover a vertical distance of 2*32 = 64 quants
c_move(me,nullvector,vector(0,0,my.skill82-my.z),IGNORE_PASSABLE);



"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: trying to float an orb... [Re: Superku] #440336
04/23/14 22:20
04/23/14 22:20
Joined: Aug 2005
Posts: 199
houston
S
seneca Offline OP
Member
seneca  Offline OP
Member
S

Joined: Aug 2005
Posts: 199
houston
It's not what I remember, but it works great!

thank you very much!


a8 commercial

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1