Stick Page Forums Archive

This tutorial has exactly what I want, but...

Started by: Bonk | Replies: 2 | Views: 441

Bonk
2

Posts: 2,778
Joined: Mar 2008
Rep: 10

View Profile
Aug 12, 2008 12:30 PM #218216
http://www.newgrounds.com/portal/view/380293

All I want is for the wall-hitting code that he gives to work, but when I put it in Flash it just... doesn't. I know how to code at least to this level, and it gets an error despite the code being apparently clean imo.

So if anyone (someone who knows their stuff) could go to that tutorial and try and get it to work, I'd be most grateful. And if you do get it to work, then please do so.
Lixu

Posts: 3,859
Joined: Aug 2007
Rep: 10

View Profile
Aug 12, 2008 1:18 PM #218240
Go to RC his game tutorial, there is something with on touch code going to this frame and that scene

by the way, did you have an instance as walls?
Scorpioxxx
2

Posts: 1,454
Joined: Apr 2006
Rep: 10

View Profile
Aug 12, 2008 1:25 PM #218243
Right, if you use his code and then your own movement code they will overlap and simple cause a slow-down effect when the character hits a wall. Post the exact code and errors if you can.
I can supply a similar code that should work in the same way though if you want it.

EDIT: Working through the tut my code is VERY similar. The only difference being that I know it works.
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.