Save-Point
Input. - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: General Support (https://www.save-point.org/forum-18.html)
+--- Thread: Input. (/thread-629.html)

Pages: 1 2


Input. - Jaberwocky - 03-01-2010

er... yeah, player touch will freeze you until it gets an input >.>;
You could make it a PP event that sets some variables to the palyer's X and Y values when they push the button, then triggers the event if the player's coordinates are right below it?


Input. - Sphacks - 03-01-2010

That's what I was thinking!!
But I have no idea how to do that. I've done it before, I remember there were variables involved.


Input. - Jaberwocky - 03-01-2010

Control Variable > Character > Map X/Y


Input. - Sphacks - 03-01-2010

Like this?
[Image: event.png]


Input. - Jaberwocky - 03-01-2010

Put the X/Y check inside the branch for the button input processing, since it only has to check it when the key is pressed o_o/


Input. - Sphacks - 03-01-2010

Like this?
[Image: event2.png]
Also, just checking, how do you figure the X and Y values? I'm probably not doing it right because i suck haha.


Input. - Ace - 03-01-2010

I think this can't work... it checks if the variables have the values, but the values are set within the cond. branch. So it will never get in there.
1. Button input processing
2. The con. branch of the button input processing
3. then like in the following pic, control both variables and so on...

[Image: event.png]


Input. - Sphacks - 03-01-2010

[Image: event3.png]
This?


Input. - Ace - 03-01-2010

just put the control variables [002] = player maps X and Y before the cond branch where you check these both variables to be 9 and 13, then it should work


Input. - Sphacks - 03-01-2010

It worked!!!! It worked!!! It worked!!
Thank you all SOOOOO much for your help and support!! You are sooo awesome! :)

HOLD UP. *everyone groans*
Before this thread is closed. I'm running into some problems when I try to make a switch for this to turn into a brown block after being hit. Why?
Ha, never mind. FIXED :)