Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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 | 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