The Daily Click ::. Forums ::. Klik Coding Help ::. Slope Problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
2nd August, 2009 at 04:34:58 -

In my zombie survival/shooter test engine i want the zombies to also go up slopes with the simple engine I made so they would follow the player. But strange and unexplainable things happened. Please help with this. PS please do not steal programming or graphics without my permission. http://www.mediafire.com/?2mg5itzbijk

 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
2nd August, 2009 at 05:03:50 -

dude you're doing things all weird ;p.

All you need to do is this.

Remove all events for slopes at the moment.

Then
Zombie is Over Backdrop
Set y of zombie to y of zombie - 1

do the same for the fast zombie
set y of fast zombie to y of fast zombie -1

then do
zombie is not overlapping backdrop
set y of zombie to y of zombie +1

you might want to copy and paste this one a few times.

I try to stray away from using fastloops for things involving multiple objects since problems can arise. Especially when the fix is simple.

I made an example, but if you follow what I said you won't have to see it. I removed some code carelessly and added some carelessly as well so its far from efficient. It would be much better if you did it yourself since you are accustomed to your own code already =]/

Edited by GamesterXIII

 
n/a

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
2nd August, 2009 at 14:46:22 -

Yes! It works! Thanks i figured I was over doing too much complicated coding. Do you want credit or do you not care?


 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
2nd August, 2009 at 15:56:43 -

thats up to you, I don't care.

Just glad I could help, aha =]

 
n/a
   

Post Reply



 



Advertisement

Worth A Click