Dialogs & Random Spots

Forum Home Forum Home > Construct 2 General > How do I....?
 Post Reply Post Reply
Author
398 Rep
Post Options Post Options   Quote andrefabud Quote  Post ReplyReply Direct Link To This Post Topic: Dialogs & Random Spots
    Posted: 22 Apr 2012 at 4:35am
Hello, First of all.

Thanks for Sharing your time and read this How do I's.

I'm trying to first find some random spots on the "Game-Screen" Since its a moving-forward game the enemies should spawn randomnly but in "on-screen points", and then after reaching a point i'm trying to stop and start a Cinematic/ some dialogs thing, like "Hey what are you doing here" and then keep on with the Game.

Any Suggestions on how can i do this?
Back to Top
4,366 Rep
Post Options Post Options   Quote Noga Quote  Post ReplyReply Direct Link To This Post Posted: 22 Apr 2012 at 12:49pm
Use System expression random(a, b) for the object's axis.
Back to Top
398 Rep
Post Options Post Options   Quote andrefabud Quote  Post ReplyReply Direct Link To This Post Posted: 22 Apr 2012 at 5:45pm
But if i do like X= Random(1,200) some values might fo outside the Screen, the idea is getting Coordinates of the screen so i can use them...
Back to Top
4,366 Rep
Post Options Post Options   Quote Noga Quote  Post ReplyReply Direct Link To This Post Posted: 23 Apr 2012 at 2:29am
I've made you an example.
Back to Top
398 Rep
Post Options Post Options   Quote andrefabud Quote  Post ReplyReply Direct Link To This Post Posted: 24 Apr 2012 at 11:24pm
Thanks alot! it was very helpful!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down