Page 1 of 1
one question

Posted:
Sun May 06, 2012 2:41 am
by NightOfHorror
Okay, one question. Okay, timers. There is a variable called Speed. This decides the player speed. It equals five at normal circumstances. So under keydowns, y and x=Speed;. So there is an item that increases speed by five. A timer is enabled and after 3000 ms or 3 seconds, it decreases speed by 5 and disables itself. Strangely, I play and after three seconds at the beginning, the direction that you go reverses from what you press and you go insanely fast. Obviously, it is the timer doing something to keep going fast. So, all I am asking is why is the timer doing this?
Re: one question

Posted:
Sun May 06, 2012 3:17 am
by skydereign
Chances are you didn't set the timer to only trigger once. And perhaps you set it to start on the actor's create actor. Timers work, if they aren't working for you, I suggest retrying it from scratch. All you do is create the timer, and have a timer event. It should be as easy as that.
Re: one question

Posted:
Sun May 06, 2012 10:21 pm
by NightOfHorror
Wait, would it work if I set it under collision. Okay, so I made a new timer and it only goes once. Also, I set the timer to be created when colliding the player into the speed boost. I used the same codes after that and it now it doesn't work. If I collide with boost, it doesn't do its job of decreasing speed again. Also, my game is lagging. Probably because I put down exactly 1100 of the things that give you points and I am afraid that just maybe that may be making my game a lag bomb now. Anyway to fix that? Also, the player follows view(no question here) and as speed increases, canvases expand! I mean like, well, there is this box canvas in the black areas that aren't part of the maze. It touches the edge of four of the segment parts. When you touch it, it triggers the ToAnteriorPosition code that just makes you stay. Like I said, as you get faster, the canvas expands into the maze area just a bit more each time you get faster. Why does the canvas do this?
Re: one question

Posted:
Sun May 06, 2012 10:27 pm
by skydereign
Timers work wherever you set them. One possible problem with collisions is if you set it to repeat, the timer will not work properly (as the timer keeps being created). Your game is lagging because of what? How did you specify 1100 ways of getting points? You can't expect us to just know how to fix a problem you tell us nothing about. And the canvas isn't expanding, I believe your problem is that the canvas is slightly behind the player (by a 1 frame delay).
Re: one question

Posted:
Sun May 06, 2012 10:36 pm
by NightOfHorror
well there are two items that you collide with to get points. One is item1, and the other is the speed boost item. Item 1 was cloned 1099 times and including the .0 item, there is 1100 of the item 1s.