Max move
IsabelleK
Member, Sous Chef Posts: 2,807
Hello, I made an actor with rule:
When attribute game.XXXX is true,
Constrain attribute: self.PositionX to: game.Mouse.Position.X
Everything is working fine, but I want this actor to move from 50 to 430 only, so player'd be unable to move this actor outside of screen. Could you please tell me how to do that?
Thank you.
When attribute game.XXXX is true,
Constrain attribute: self.PositionX to: game.Mouse.Position.X
Everything is working fine, but I want this actor to move from 50 to 430 only, so player'd be unable to move this actor outside of screen. Could you please tell me how to do that?
Thank you.
Comments
If self.Position > 50 and if self.positionx < 430
Do this ( put your rule here )
I think that'll work. You could also put that rule around your constrain attribute, that might be a better move.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
...but the feedback has been pretty good so far.
Also, the ordering page is open for comments. Only CaptainChoco has commented. There's also a chat box on my website.
On the bright side, the Polish Zloty seems to be getting stronger when compared to the US dollar.. That probably hurts you if you're selling apps to the United States, but it's great news for buying American textbooks. HA HA!
For non-polish speakers: Hi. Do you know polish or just using a translator?
It reminds me arabian countries, where everybody can say: "cześć" and "jak się masz?"
Do you know that I can buy food for about 39.4 years instead buying your book? ;P
if self.position.x < 240
Constrain attribute self.position.x to max(game.mouse.position.x, 50)
if self.position.x > 240
Constrain attribute self.position.x to min(game.mouse.position.x, 430)
I usually say "Co słychać" instead of "Jak się masz"
Commove supports three languages. Polish is one of them. Ha ha, that seems unlikely. I am familiar with some food from Poland... mostly soup and Prince Polo chocolate bars.
Prince Polo is classic, almost as Grześki :P