how to make this sprite move

Just started using Construct 2? Post your questions here

Post » Mon Jul 04, 2016 8:26 am

Message: kimshone can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
hello. can i know what is wrong with my event.

i have one sprite that is at the bottom of the layout..
then there is also a line above the layout..

this is my event screenshot
http://prntscr.com/bojq55
B
7
S
2
Posts: 12
Reputation: 499

Post » Mon Jul 04, 2016 7:20 pm

I do not understand you want to do, but try this

Image
B
27
S
7
Posts: 35
Reputation: 1,602

Post » Sun Jul 10, 2016 5:45 pm

Your current events are changing the line position but instantly changing them back because every tick your putting line back to line.X and line.Y+2...

If its either/or like taximan pointed out.. either overlapped or not then his method would work.. otherwise you will need to use a variable that you flip when a collision occurs.. if line normal lineVal=1 upon collision lineVal=0.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
69
S
18
G
8
Posts: 639
Reputation: 9,549


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest