{WIP} First "game"

Show us your completed creations made in Construct 2

Post » Sat Nov 10, 2012 1:09 am

PLAY

ARROWS - moves
D      - hold the fruits


thank youvaldarko2012-11-12 03:41:59
B
48
S
5
G
6
Posts: 210
Reputation: 6,247

Post » Sun Nov 11, 2012 8:40 am

maybe pin a sprite above the character to detect solids.
create Sprite "solidsensor"
10 by 10 pixels. invisible.
on layout start: set position to player.x and player.y+30
set pin to active

if solidsensor collides with "blocksprite," set global variable "moveupallowed" to 0, else, set to 1.

on key pressed "up", (when moveupallowed =1), move player up.

maybe that type of logic would work?
B
5
S
1
Posts: 14
Reputation: 754

Post » Sun Nov 11, 2012 4:40 pm

thnx PortaCannon, but did'nt work :[
i think i'll take alway the crouch function until i figure out a better way to implement this.
thnx anyway
B
48
S
5
G
6
Posts: 210
Reputation: 6,247

Post » Sun Nov 11, 2012 5:19 pm

did it!! the playerY is -30 and i figure out how to make the character get up automatically

thnx Porta, your logic give me a light
B
48
S
5
G
6
Posts: 210
Reputation: 6,247

Post » Sun Nov 11, 2012 6:10 pm

Alternatively you could just use "overlaps at offset". No plugins, no variables.Tokinsom2012-11-11 18:11:13
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Nov 11, 2012 6:24 pm

nice, tokinsom thnx. i think i'm starting to understand how to simplify the events
B
48
S
5
G
6
Posts: 210
Reputation: 6,247


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 0 guests