How do I add popup- screen on game

Get help using Construct 2

Post » Wed Aug 03, 2016 6:48 pm

i just want to add the popup screen on the game.

MEAN, if player hit any obstacle(enemy) OR went out from the layout...then small layout comes upon the same screen(same location) where player hit the obstacle

just like : PAUSE SCREEN
Image

THIS SMALL PAUSE MENU APPPEAR ON THE SCREEN
B
3
Posts: 8
Reputation: 193

Post » Wed Aug 03, 2016 11:16 pm

On collision with enemy OR Inverse Player is on layout - Create PopupObject at x/y
Mistakes were made.
B
53
S
27
G
114
Posts: 1,698
Reputation: 64,444

Post » Thu Aug 04, 2016 6:20 am

Litetween behaviour may help you in this part
I have used this in my game and made popup
on start of the layout stay popup and their buttons out of screen
when player died or collision with enemy > start (litween position)
when click any button > reverse (litween position)

something like this you can do
popup will go smoothly to out of screen and come in smoothly to
you can do some other thing in this behaviour
like first popup come then after button appear
do experiment and you can do some amazing things
Image
B
68
S
40
G
48
Posts: 680
Reputation: 34,066

Post » Fri Aug 05, 2016 1:51 pm

oosyrag wrote:On collision with enemy OR Inverse Player is on layout - Create PopupObject at x/y


thank you very much for you valuable revert back,
could you please provide me any example, i am not ale to find create popup object..
so i want a example so that i can create popup object
B
3
Posts: 8
Reputation: 193

Post » Fri Aug 05, 2016 3:05 pm

narang2050 wrote:
oosyrag wrote:On collision with enemy OR Inverse Player is on layout - Create PopupObject at x/y


thank you very much for you valuable revert back,
could you please provide me any example, i am not ale to find create popup object..
so i want a example so that i can create popup object


PopupObject is just the name he gave for the example. It can be any object, however you want to name it.

Make a sprite and call it "PopupObject" then do System->create object "PopupObject" (or whatever name you chose to give the object in question).

Making a menu appear on the screen is no different to making anything else appear. Usually you would use sprites or maybe tiled background objects to make a menu... the same way you would make an enemy appear or a "power-up" or whatever.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests