problems in randomizing and falling

Chat about anything not covered in these forums, but keep it civil!

Post » Wed Feb 27, 2008 10:03 am

hi all.. sorry for the previous thread i made.. this one is now serious.

i decided to make a superb scrolling game that is somehow a remake of nokia's rapid roll..

now i got questions on these...
the sprite name is ground. so i did this : ground.y=ground.y-1 . the condition for this is "system-->always" . i expected the sprite to reduce it's y every time. but it didnt.

also i got problems with randomizing.
i did this :
system-->always, if ground.y = 479 then set ground.x=random(0-639) . somehow the sprite wont change position. i have two movements for this second problem, which is wrap and physics without rotation..

thanks in advance... :D :D
B
2
S
1
G
4
Posts: 31
Reputation: 1,262

Post » Wed Feb 27, 2008 10:29 am

I don't think 'random' can take a negative value. By saying random(0-639) you're not saying between 0 and 639, you are literally saying zero subtract 639, which is random(-639), which probably isn't doing what you want it to. random(640) goes between 0 and 639 inclusive, which is probably what you want.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Wed Feb 27, 2008 10:34 am

thanks... i still have another problem on object.y=object.y+1 .
:D
B
2
S
1
G
4
Posts: 31
Reputation: 1,262

Post » Wed Feb 27, 2008 11:39 am

That should work fine. Try an event like this:

+ Always
: Sprite - Set Y to .Y + 1

using .Y is a shortcut for Sprite.Y if it's an action in the same object.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Wed Feb 27, 2008 12:18 pm

thanks!! now this is some falling.. :D
B
2
S
1
G
4
Posts: 31
Reputation: 1,262

Post » Wed Feb 27, 2008 1:49 pm

[url:3a4xq4t6]http://kpbotbot.hostsnake.com/files/remake.zip[/url:3a4xq4t6]

i had some troubles with that but ashley helped me out.. well, that game is not yet. i got a lot to fix... try it out.. :D
B
2
S
1
G
4
Posts: 31
Reputation: 1,262

Post » Wed Feb 27, 2008 1:50 pm

[url:r73cie55]http://kpbotbot.hostsnake.com/files/remake.zip[/url:r73cie55]

i had some troubles with that but ashley helped me out.. well, that game is not yet. i got a lot to fix... try it out.. :D .

actually i based it from rapid roll, a mobile game for nokia. a pc version would be nice... :D well theres no ball yet, and the 3d boxes are not yet polished.. :D
B
2
S
1
G
4
Posts: 31
Reputation: 1,262

Post » Wed Feb 27, 2008 2:43 pm

WOW triple post, new record?
btw. try figuring out on your own, dont rush with every problem at forum :P
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Wed Feb 27, 2008 4:35 pm

[quote="kpbotbot":1gyvh54c][url:1gyvh54c]http://kpbotbot.hostsnake.com/files/remake.zip[/url:1gyvh54c]
well theres no ball yet, and the 3d boxes are not yet polished.. :D[/quote:1gyvh54c]

Correct. There's no ball. And hence, no game to try out. The total sum of interactivity with remake.exe is "Run program" and "Quit program."

I understand you're excited about learning Construct. That's totally cool. I have to wonder, though, why you keep posting things like this.

Don't get me wrong, it's okay to post things here. By no means am I saying you shouldn't post your stuff. But please, make it worthwhile. What you have here is a bunch of random boxes falling down the screen. That's not a game, or even a demo. There's really nothing we could give feedback on.

The point is you don't have to blow your load every time you get excited. If you're uploading something it should be for a small handful of reasons:

1. To demonstrate a new technique (post .cap)
2. To help someone with a problem (post .cap)
4. To get help with a problem (post .cap)
4. To get feedback on a work-in-progress (post .exe)
5. To play your finished game (post .exe)

Personally I have close to a hundred .cap files I've made over the past few months sitting in various folders. Tests, code practice, experiments, backups, whatever. And those are the ones I've deemed worth keeping. I'm sure most people here have much the same thing. I've only ever posted a handful of things though, and it was for one of the reasons above. Nobody's going to be interested in how I can make a cube rotate with the mouse, because if they were they'd do it themselves. Much the same way that watching some boxes fall down the screen isn't all that exciting.

So what I'm trying to say is take it easy. Do some good, solid work on a project or two before posting your results. If you need feedback, give us something to test out. You've been hopping around the forum like a caffeinated squirrel since you joined up. Dial it down a notch.

It's not my intent to offend you and I hope you take this constructively.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu Feb 28, 2008 9:11 am

first of all (to deadeye), i know that you know how to read the thread subject...

lets get to the point:

[u:25mfjiez]i created this thread as a question, not an announcement[/u:25mfjiez]. regarding the link, it was to show that i had solved things, and not to let you play, but to let people see that i solved my problem..

its may be true that i am a newbie, and i cant learn so much. thats because im only 14. i havnt had programming lessons yet.i had self tutorials but i stopped because of boredom. i do this (Construct-ing) for fun. i am not a kid who says :" hey! i made a game! weeeee! "

things that i make may seem basic to you guys(especially deadeye).

so, if you don't want/like or if you simply hate my creations, then stay out! :twisted: :twisted: :twisted:

i dont care if you people will ban me in this forum . its just an action which is a piece of shit!
B
2
S
1
G
4
Posts: 31
Reputation: 1,262

Next

Return to Open Topic

Who is online

Users browsing this forum: No registered users and 1 guest