Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 975 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
walk terrain bbox problem, and problem mouse #407529
09/14/12 20:24
09/14/12 20:24
Joined: Apr 2012
Posts: 106
G
GaniX Offline OP
Member
GaniX  Offline OP
Member
G

Joined: Apr 2012
Posts: 106
hello to those who read this message.

I have 2 problems so I uploaded it for quick understanding:
problem 1

http://www.mediafire.com/?985fgpp5gmdooq5 download link

I have 2 mages, one superimposed on the other, I do click to the front mage trying to do click to behind mage.
the front mage is not sensitive to the mouse, but the back mage is sensitive.
i only can click the back mage, but the front mage is obstruct.

why ,waht can i do?




and the other problem is difficult to explain:

I have the player walking arround the level stage ,is walks well ,but when in contact with terrains , the walk is shaking the camera, I guess it's caused by the way my.zC_trace (.... use_box), also i practice to use the mode used in the little worcshop 24 samples: c_trace ...... my.z = hit.z-vfeet ... and produces an ugly motion effect when climbing stairs or similar things

http://www.mediafire.com/?d1dfaat0ahkd611 download link

if you try to do that (mode of workshop 24) remember the model of player must not use bbox , and remember use no movevec[2], use mi.z= hitz-vfeet.

my question: what can ido to delete this shaking camera?

help pls

Re: walk terrain bbox problem, and problem mouse [Re: GaniX] #407530
09/14/12 20:55
09/14/12 20:55
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Code:
action transp()
{
	my.flags2 |= UNTOUCHABLE;  // <-- this is what you missing
	set(my,TRANSLUCENT);
	my.alpha = 50;
}


And why set you this action in a while loop????

Last edited by Widi; 09/14/12 20:55.
Re: walk terrain bbox problem, and problem mouse [Re: Widi] #407532
09/14/12 21:41
09/14/12 21:41
Joined: Apr 2012
Posts: 106
G
GaniX Offline OP
Member
GaniX  Offline OP
Member
G

Joined: Apr 2012
Posts: 106
thanks for your help, i put this acction in a while because i think i must do this way.

and about the 2 problem you have one idea?

Re: walk terrain bbox problem, and problem mouse [Re: GaniX] #407630
09/17/12 07:57
09/17/12 07:57
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
A shaking camera can be caused either by a bad adjusted movement code, or by a bad position of the bounding box - make sure that the entity's origin coordinate is really at its center. The usual mistake is an origin at or below the entity's feet.


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