Hello
Guest
, please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length.
ZFGC
>
Resources
>
Coding
>
[Request / Listing] GM6-Boulders-Solved!
« previous
next »
Pages: [
1
]
Go Down
Print
Author
Topic: [Request / Listing] GM6-Boulders-Solved! (Read 1077 times)
0 Members and 1 Guest are viewing this topic.
King Tetiro
Leader of Phoenix Heart
[Request / Listing] GM6-Boulders-Solved!
«
on:
August 03, 2006, 08:32:52 am »
Reputation: +0/-0
Offline
Gender:
Posts: 3549
Can someone tell me how to make my boulder so that it randomly moves around but when it hits something, it rebounds?
I need it for Demo 4 of my game.
Also the Boulder rolls on the floor.
«
Last Edit: February 21, 2012, 08:31:04 am by Niek
»
Logged
AoDC
Re: GM6-Boulders
«
Reply #1 on:
August 03, 2006, 09:10:28 am »
Reputation: +1/-0
Offline
Gender:
Posts: 4588
I think you should search the manual for direction, and random.
Logged
the a o d c
King Tetiro
Leader of Phoenix Heart
Re: GM6-Boulders
«
Reply #2 on:
August 03, 2006, 09:23:19 am »
Reputation: +0/-0
Offline
Gender:
Posts: 3549
I don't know where to start. I want it to be in coding so I can change it easier. Any ideas?
+It must rebound off objects (Barrier is the object I want it to rebound off)
«
Last Edit: August 03, 2006, 09:26:43 am by Laigonaz
»
Logged
Hero of Vortex
Re: GM6-Boulders
«
Reply #3 on:
August 03, 2006, 10:07:02 pm »
You don't know me.
Reputation: +0/-0
Offline
Gender:
Posts: 234
In create event:
Code:
[Select]
motion_add(random(360),<your speed here>)
In collision with barrier event:
Code:
[Select]
move_bounce_all(0)
M'kay?
Logged
No one located in this area of the internet remembers me.
King Tetiro
Leader of Phoenix Heart
Re: GM6-Boulders
«
Reply #4 on:
August 04, 2006, 08:39:08 am »
Reputation: +0/-0
Offline
Gender:
Posts: 3549
It worked! Thanks! I am really happy now!
Logged
cb43569
Re: GM6-Boulders-Solved!
«
Reply #5 on:
August 07, 2006, 02:48:02 pm »
Reputation: +0/-0
Offline
Gender:
Posts: 2890
Um, that's a simple (glitchy) piece of code that can be made with two pieces of D&D.
A motion add can be done easier and less glitchy with a x+ and y+ with a direction value and a few lines long.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
ZFGC
>
Resources
>
Coding
>
[Request / Listing] GM6-Boulders-Solved!
Contact Us
|
Legal
|
Advertise Here
2013 © ZFGC, All Rights Reserved
anything