Dialogs & Random Spots Forum Home > Construct 2 General > How do I....? |
Post Reply
|
| Author | |
Post Options
Quote Reply
Topic: Dialogs & Random SpotsPosted: 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? |
|
![]() |
|
Post Options
Quote Reply
Posted: 22 Apr 2012 at 12:49pm |
|
|
Use System expression random(a, b) for the object's axis.
|
|
![]() |
|
Post Options
Quote Reply
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...
|
|
![]() |
|
Post Options
Quote Reply
Posted: 23 Apr 2012 at 2:29am |
|
|
I've made you an example.
|
|
![]() |
|
Post Options
Quote Reply
Posted: 24 Apr 2012 at 11:24pm |
|
|
Thanks alot! it was very helpful!
|
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |