Make a movement to see

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Make a movement to see

Postby juhuwoorps » Thu Oct 02, 2008 8:49 am

How I make a movement of a hotspot to see?
I have tried it with move and creat time event, but I've been unable to do the correct code.Either I had a lot of errors or nothing moves or the movement is not sightable.

Thanks for help!
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm

Postby mercedes » Thu Oct 02, 2008 9:50 am

Hi there...are you wanting to move this hotspot..once..or are you wanting to move it around more then once..?

The syntax is

Code: Select all
Action.LoadAPicture Hotspot(5),"Picture_name_goes_here.jpg"
Hotspot(5).move X*15,Y*15,W*15,H*15
PlaySound GetPath + "notes.wav", False---If you want noise..


You put this in Hotspot(4) lets say...is what I did here...to make Hotspot(5) move....


Post back if this isn't what u are looking for..:)

You replace X Y W H ---with the coordinates you want..:)
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby juhuwoorps » Thu Oct 02, 2008 1:55 pm

mercedes wrote:Hi there...are you wanting to move this hotspot..once..or are you wanting to move it around more then once..?

The syntax is

Code: Select all
Action.LoadAPicture Hotspot(5),"Picture_name_goes_here.jpg"
Hotspot(5).move X*15,Y*15,W*15,H*15
PlaySound GetPath + "notes.wav", False---If you want noise..


You put this in Hotspot(4) lets say...is what I did here...to make Hotspot(5) move....


Post back if this isn't what u are looking for..:)

You replace X Y W H ---with the coordinates you want..:)



I know this, but the movement is to fast.I want to have a slower move like in the Third Person Plugin!
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm

Postby mercedes » Thu Oct 02, 2008 1:58 pm

What do u mean..like in the Third Person Plugin....I'm not understanding you...And are u wanting it to move only once..?
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby juhuwoorps » Thu Oct 02, 2008 2:02 pm

Yes only once. And I want to have a slow move!
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm

Postby mercedes » Thu Oct 02, 2008 2:08 pm

Hmm.....this is why i want timed transitions for hotspots too..~..

ok well are u willing to do an animation then..? or video..

With timed events ..won't work..i don't think..cause that just slows down the process..not the actual "move" but with an animation..u can control the movement to make it only once..and slow..if u want..

If u need any help with this..let me know..:)
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Lyberodoggy » Thu Oct 02, 2008 2:24 pm

Code: Select all
'this goes in procedures
Sub MoveHotspot
X=X+1
Y=Y+1
Hotspot(5).move X*15,Y*15
End Sub
'this goes to the hotspot
Action.CreateTimedEvent moveHotspot


See what happens and experiment
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby mercedes » Thu Oct 02, 2008 2:37 pm

Will this be a "slow" movement though kiddo..?..I'm gonna try this though for myself..lol
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby juhuwoorps » Thu Oct 02, 2008 2:48 pm

Lyberodoggy wrote:
Code: Select all
'this goes in procedures
Sub test
X=X+1
Y=Y+1
Hotspot(5).move X*15,Y*15
End Sub
'this goes to the hotspot
Action.CreateTimedEvent test


See what happens and experiment



This gives me an error:
Image

(I've changed MoveHotspot to test.This is why in the picture is shown test)


I'm thinking about something like this:

Code: Select all
x=5
do until x<100
Action.CreateTimedEvent 1, "Hotspot(5).move X*15,70*15", True
x=x+1

loop


But this don't work :cry:
Last edited by juhuwoorps on Thu Oct 02, 2008 3:00 pm, edited 2 times in total.
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm

Postby Lyberodoggy » Thu Oct 02, 2008 2:50 pm

make sure hotspot 5 exists
EDIT:

Your syntax is wrong!

CreateTimedEvent 1,"test",true
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby juhuwoorps » Thu Oct 02, 2008 2:52 pm

Hotspot 5 exists!

Ok.now it runs.
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm

Postby mercedes » Thu Oct 02, 2008 3:12 pm

So does this procedure move it slowly then..?..just curious...:)
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Lyberodoggy » Thu Oct 02, 2008 3:17 pm

Yes. If you want faster movement, add 5 to X instead of 1...
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby mercedes » Thu Oct 02, 2008 3:19 pm

Hey could you do this over and over again..?..within the same hotspot..with different pictures..?
or the same picture...over and over again..
Almost like an animation..? do u know what i mean..
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby juhuwoorps » Thu Oct 02, 2008 3:30 pm

Juhu!
I figured out what I want! :D :D

I made it with help of the game Shooting Field made by Lyberodoggy!

Many thanks for your help! :D
juhuwoorps
Code Master
 
Posts: 622
Joined: Tue Jul 08, 2008 3:13 pm

Postby Lyberodoggy » Thu Oct 02, 2008 3:33 pm

You are welcome, I 've already given the source of the game in a previous post...

Mercedes, I don't know if I understand what you mean
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests