Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,429 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
wait_for #355671
01/28/11 14:57
01/28/11 14:57
Joined: Dec 2010
Posts: 87
R
romin2011 Offline OP
Junior Member
romin2011  Offline OP
Junior Member
R

Joined: Dec 2010
Posts: 87
Hello, i am using ent_faceto to turn to target smothly but i have to use wait_for to determine if entity reached the angle. And using it stops all other functions in while loop till it reaches the angle.

Re: wait_for [Re: romin2011] #355678
01/28/11 15:11
01/28/11 15:11
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
That's not a question you'd ask the developers. Be patient until someone answers your (old) question.
Btw I've already told you how to avoid freezing your while loop by waiting for things to finish.


"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: wait_for [Re: romin2011] #355679
01/28/11 15:11
01/28/11 15:11
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline
User
TheShooter  Offline
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
Did you tried to call this, out of the main?


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: wait_for [Re: Superku] #355756
01/28/11 18:23
01/28/11 18:23
Joined: Dec 2010
Posts: 87
R
romin2011 Offline OP
Junior Member
romin2011  Offline OP
Junior Member
R

Joined: Dec 2010
Posts: 87
Originally Posted By: Superku
That's not a question you'd ask the developers. Be patient until someone answers your (old) question.

I am sorry if so but using new entmove.c you have to manually check if the entity reached the angle by using wait_for which freezes the whole thing till it reaches the angle and i thought it is worth to mention to developers so they can come up with a work around with it?
Originally Posted By: Superku
Btw I've already told you how to avoid freezing your while loop by waiting for things to finish.

But Superku that technique doesn't work with it or maybe i couldn't get it. Can you please give me an example to use ent_faceto with wait_for inside a loop without freezing other functions inside that loop? Thank YOu

Re: wait_for [Re: romin2011] #356169
01/31/11 11:04
01/31/11 11:04
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Waiting is just the purpose of wait_for. If this is not desired, just use a different function to check if the end position is reached - for instance by comparing the entity angle with the target angle.

All entmove functions set a definite value when the target is reached, so it's easy to check from another function.


Moderated by  old_bill, Tobias 

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